From f65d2d00ed891763e22f9491bf28f6630a09eb50 Mon Sep 17 00:00:00 2001 From: frankdrn <84046408+frankdrn@users.noreply.github.com> Date: Sat, 5 Jun 2021 09:09:20 +0100 Subject: [PATCH] Fix character positioning for colourlcd160x80 --- .../breakout_colourlcd160x80/breakout_colourlcd160x80.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropython/modules/breakout_colourlcd160x80/breakout_colourlcd160x80.cpp b/micropython/modules/breakout_colourlcd160x80/breakout_colourlcd160x80.cpp index 2d387c75..737fcb0f 100644 --- a/micropython/modules/breakout_colourlcd160x80/breakout_colourlcd160x80.cpp +++ b/micropython/modules/breakout_colourlcd160x80/breakout_colourlcd160x80.cpp @@ -394,7 +394,7 @@ mp_obj_t BreakoutColourLCD160x80_character(size_t n_args, const mp_obj_t *pos_ar breakout_colourlcd160x80_BreakoutColourLCD160x80_obj_t *self = MP_OBJ_TO_PTR2(args[ARG_self].u_obj, breakout_colourlcd160x80_BreakoutColourLCD160x80_obj_t); int c = mp_obj_get_int(args[ARG_char].u_obj); - int x = args[ARG_y].u_int; + int x = args[ARG_x].u_int; int y = args[ARG_y].u_int; Point p(x, y); @@ -528,4 +528,4 @@ mp_obj_t BreakoutColourLCD160x80_line(size_t n_args, const mp_obj_t *pos_args, m return mp_const_none; } -} \ No newline at end of file +}