improve print
This commit is contained in:
parent
b5cdb2d335
commit
d007481c20
@ -15,7 +15,6 @@ void ui_text_number18x32(uint32_t num, uint16_t x, uint16_t y, uint16_t color) {
|
|||||||
div = div / 10;
|
div = div / 10;
|
||||||
while (div > 0) {
|
while (div > 0) {
|
||||||
tmp = (num / div) % 10;
|
tmp = (num / div) % 10;
|
||||||
printf("div: %d x: %d tmp: %d\n", div, x, tmp);
|
|
||||||
mimg_Area area = mimg_get_tile_area(IMG_DIGI_18_32, 10, 1, tmp);
|
mimg_Area area = mimg_get_tile_area(IMG_DIGI_18_32, 10, 1, tmp);
|
||||||
mimg_draw(ST7735_DrawPixel, x, y, color, IMG_DIGI_18_32, area);
|
mimg_draw(ST7735_DrawPixel, x, y, color, IMG_DIGI_18_32, area);
|
||||||
x = x + 18;
|
x = x + 18;
|
||||||
|
3
monitor.sh
Normal file
3
monitor.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
python -m mpypack.cli -p /dev/ttyACM0 repl
|
Loading…
x
Reference in New Issue
Block a user