fix micorpython line and triangle primitives for breakout LCDs

This commit is contained in:
Lukáš Říha 2022-04-19 16:55:15 +02:00
parent cbd28ca432
commit 4de8762381
2 changed files with 12 additions and 12 deletions

View File

@ -493,10 +493,10 @@ mp_obj_t BreakoutColourLCD160x80_triangle(size_t n_args, const mp_obj_t *pos_arg
int x1 = args[ARG_x1].u_int; int x1 = args[ARG_x1].u_int;
int y1 = args[ARG_y1].u_int; int y1 = args[ARG_y1].u_int;
int x2 = args[ARG_x1].u_int; int x2 = args[ARG_x2].u_int;
int y2 = args[ARG_y1].u_int; int y2 = args[ARG_y2].u_int;
int x3 = args[ARG_x1].u_int; int x3 = args[ARG_x3].u_int;
int y3 = args[ARG_y1].u_int; int y3 = args[ARG_y3].u_int;
Point p1(x1, y1); Point p1(x1, y1);
Point p2(x2, y2); Point p2(x2, y2);
@ -523,8 +523,8 @@ mp_obj_t BreakoutColourLCD160x80_line(size_t n_args, const mp_obj_t *pos_args, m
int x1 = args[ARG_x1].u_int; int x1 = args[ARG_x1].u_int;
int y1 = args[ARG_y1].u_int; int y1 = args[ARG_y1].u_int;
int x2 = args[ARG_x1].u_int; int x2 = args[ARG_x2].u_int;
int y2 = args[ARG_y1].u_int; int y2 = args[ARG_y2].u_int;
Point p1(x1, y1); Point p1(x1, y1);
Point p2(x2, y2); Point p2(x2, y2);

View File

@ -493,10 +493,10 @@ mp_obj_t BreakoutColourLCD240x240_triangle(size_t n_args, const mp_obj_t *pos_ar
int x1 = args[ARG_x1].u_int; int x1 = args[ARG_x1].u_int;
int y1 = args[ARG_y1].u_int; int y1 = args[ARG_y1].u_int;
int x2 = args[ARG_x1].u_int; int x2 = args[ARG_x2].u_int;
int y2 = args[ARG_y1].u_int; int y2 = args[ARG_y2].u_int;
int x3 = args[ARG_x1].u_int; int x3 = args[ARG_x3].u_int;
int y3 = args[ARG_y1].u_int; int y3 = args[ARG_y3].u_int;
Point p1(x1, y1); Point p1(x1, y1);
Point p2(x2, y2); Point p2(x2, y2);
@ -523,8 +523,8 @@ mp_obj_t BreakoutColourLCD240x240_line(size_t n_args, const mp_obj_t *pos_args,
int x1 = args[ARG_x1].u_int; int x1 = args[ARG_x1].u_int;
int y1 = args[ARG_y1].u_int; int y1 = args[ARG_y1].u_int;
int x2 = args[ARG_x1].u_int; int x2 = args[ARG_x2].u_int;
int y2 = args[ARG_y1].u_int; int y2 = args[ARG_y2].u_int;
Point p1(x1, y1); Point p1(x1, y1);
Point p2(x2, y2); Point p2(x2, y2);