improve print

This commit is contained in:
Sheikah 2023-01-19 00:16:36 +08:00
parent b5cdb2d335
commit d007481c20
2 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,6 @@ void ui_text_number18x32(uint32_t num, uint16_t x, uint16_t y, uint16_t color) {
div = div / 10;
while (div > 0) {
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_draw(ST7735_DrawPixel, x, y, color, IMG_DIGI_18_32, area);
x = x + 18;

3
monitor.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
python -m mpypack.cli -p /dev/ttyACM0 repl