From 09b443bf2dc2139976cde757f0e7112162043193 Mon Sep 17 00:00:00 2001 From: frankdrn <84046408+frankdrn@users.noreply.github.com> Date: Sat, 5 Jun 2021 09:04:34 +0100 Subject: [PATCH 1/3] Update breakout_roundlcd.cpp --- micropython/modules/breakout_roundlcd/breakout_roundlcd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropython/modules/breakout_roundlcd/breakout_roundlcd.cpp b/micropython/modules/breakout_roundlcd/breakout_roundlcd.cpp index 3f970b37..3bb64895 100644 --- a/micropython/modules/breakout_roundlcd/breakout_roundlcd.cpp +++ b/micropython/modules/breakout_roundlcd/breakout_roundlcd.cpp @@ -394,7 +394,7 @@ mp_obj_t BreakoutRoundLCD_character(size_t n_args, const mp_obj_t *pos_args, mp_ breakout_roundlcd_BreakoutRoundLCD_obj_t *self = MP_OBJ_TO_PTR2(args[ARG_self].u_obj, breakout_roundlcd_BreakoutRoundLCD_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); @@ -523,4 +523,4 @@ mp_obj_t BreakoutRoundLCD_line(size_t n_args, const mp_obj_t *pos_args, mp_map_t return mp_const_none; } -} \ No newline at end of file +} From a2d2165f8131868900713007e1b655154ccfd325 Mon Sep 17 00:00:00 2001 From: frankdrn <84046408+frankdrn@users.noreply.github.com> Date: Sat, 5 Jun 2021 09:07:08 +0100 Subject: [PATCH 2/3] Fix character positioning for colourlcd240x240 --- .../breakout_colourlcd240x240/breakout_colourlcd240x240.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropython/modules/breakout_colourlcd240x240/breakout_colourlcd240x240.cpp b/micropython/modules/breakout_colourlcd240x240/breakout_colourlcd240x240.cpp index 79aa909f..8e7cab85 100644 --- a/micropython/modules/breakout_colourlcd240x240/breakout_colourlcd240x240.cpp +++ b/micropython/modules/breakout_colourlcd240x240/breakout_colourlcd240x240.cpp @@ -394,7 +394,7 @@ mp_obj_t BreakoutColourLCD240x240_character(size_t n_args, const mp_obj_t *pos_a breakout_colourlcd240x240_BreakoutColourLCD240x240_obj_t *self = MP_OBJ_TO_PTR2(args[ARG_self].u_obj, breakout_colourlcd240x240_BreakoutColourLCD240x240_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 BreakoutColourLCD240x240_line(size_t n_args, const mp_obj_t *pos_args, return mp_const_none; } -} \ No newline at end of file +} 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 3/3] 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 +}