From 1d9c85c7c36601d2d1ba89963190a2367191e826 Mon Sep 17 00:00:00 2001 From: DiSlord Live Date: Sat, 3 Dec 2022 20:04:37 +0300 Subject: [PATCH] Replace --- ui.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui.c b/ui.c index 3644d7e..39806cc 100644 --- a/ui.c +++ b/ui.c @@ -462,17 +462,16 @@ touch_draw_test(void) ili9341_drawstring("TOUCH TEST: DRAG PANEL, PRESS BUTTON TO FINISH", OFFSETX, LCD_HEIGHT - FONT_GET_HEIGHT); int old_button_state = 0; + lcd_set_font(FONT_NORMAL); while (touch_check() != EVT_TOUCH_PRESSED) { int button_state = READ_PORT() & BUTTON_MASK; if (button_state != old_button_state) { - char buf[20]; - plot_printf(buf, sizeof buf, "STATE: %4d ", button_state); - ili9341_drawstring_7x13(buf, 120, 120); + lcd_printf(120, 120, "STATE: % 4d ", button_state); old_button_state = button_state; } } - + lcd_set_font(FONT_SMALL); do { if (touch_check() == EVT_TOUCH_PRESSED){ touch_position(&x0, &y0);