Skip to content
Snippets Groups Projects
Commit 75cdec84 authored by Philip Stewart's avatar Philip Stewart
Browse files

Fix linting

parent 330e5577
No related branches found
No related tags found
1 merge request!332Ofscreen lines
This commit is part of merge request !332. Comments created here will be created in the context of that merge request.
......@@ -41,9 +41,9 @@ static mp_obj_t mp_display_print(size_t n_args, const mp_obj_t *args)
GET_STR_DATA_LEN(args[0], print, print_len);
int32_t posx = mp_obj_get_int(args[1]);
int32_t posy = mp_obj_get_int(args[2]);
uint32_t fg = get_color(args[3]);
uint32_t bg = get_color(args[4]);
int res = epic_disp_print(posx, posy, (const char *)print, fg, bg);
uint32_t fg = get_color(args[3]);
uint32_t bg = get_color(args[4]);
int res = epic_disp_print(posx, posy, (const char *)print, fg, bg);
if (res < 0) {
mp_raise_OSError(-res);
}
......@@ -60,8 +60,8 @@ static mp_obj_t mp_display_print_adv(size_t n_args, const mp_obj_t *args)
mp_raise_TypeError("input text must be a string");
}
GET_STR_DATA_LEN(args[0], print, print_len);
int32_t posx = mp_obj_get_int(args[1]);
int32_t posy = mp_obj_get_int(args[2]);
int32_t posx = mp_obj_get_int(args[1]);
int32_t posy = mp_obj_get_int(args[2]);
uint32_t fg = get_color(args[3]);
uint32_t bg = get_color(args[4]);
uint8_t fontName = mp_obj_get_int(args[5]);
......@@ -80,8 +80,8 @@ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(
/* draw pixel on the display */
static mp_obj_t mp_display_pixel(size_t n_args, const mp_obj_t *args)
{
int16_t x = mp_obj_get_int(args[0]);
int16_t y = mp_obj_get_int(args[1]);
int16_t x = mp_obj_get_int(args[0]);
int16_t y = mp_obj_get_int(args[1]);
uint16_t col = get_color(args[2]);
//TODO: Move sanity checks to epicardium
......@@ -121,10 +121,10 @@ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(
/* draw line on the display */
static mp_obj_t mp_display_line(size_t n_args, const mp_obj_t *args)
{
int16_t xs = mp_obj_get_int(args[0]);
int16_t ys = mp_obj_get_int(args[1]);
int16_t xe = mp_obj_get_int(args[2]);
int16_t ye = mp_obj_get_int(args[3]);
int16_t xs = mp_obj_get_int(args[0]);
int16_t ys = mp_obj_get_int(args[1]);
int16_t xe = mp_obj_get_int(args[2]);
int16_t ye = mp_obj_get_int(args[3]);
uint16_t col = get_color(args[4]);
uint16_t ls = mp_obj_get_int(args[5]);
uint16_t ps = mp_obj_get_int(args[6]);
......@@ -155,10 +155,10 @@ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(
/* draw rectangle on the display */
static mp_obj_t mp_display_rect(size_t n_args, const mp_obj_t *args)
{
int16_t xs = mp_obj_get_int(args[0]);
int16_t ys = mp_obj_get_int(args[1]);
int16_t xe = mp_obj_get_int(args[2]);
int16_t ye = mp_obj_get_int(args[3]);
int16_t xs = mp_obj_get_int(args[0]);
int16_t ys = mp_obj_get_int(args[1]);
int16_t xe = mp_obj_get_int(args[2]);
int16_t ye = mp_obj_get_int(args[3]);
uint16_t col = get_color(args[4]);
uint16_t fs = mp_obj_get_int(args[5]);
uint16_t ps = mp_obj_get_int(args[6]);
......@@ -189,8 +189,8 @@ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(
/* draw rectangle on the display */
static mp_obj_t mp_display_circ(size_t n_args, const mp_obj_t *args)
{
int16_t x = mp_obj_get_int(args[0]);
int16_t y = mp_obj_get_int(args[1]);
int16_t x = mp_obj_get_int(args[0]);
int16_t y = mp_obj_get_int(args[1]);
uint16_t rad = mp_obj_get_int(args[2]);
uint16_t col = get_color(args[3]);
uint16_t fs = mp_obj_get_int(args[4]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment