From 92ebbd2ef84357d38ff903eaa56ff8e7e6e63969 Mon Sep 17 00:00:00 2001 From: BlueFox Date: Sat, 16 Nov 2024 17:00:54 +0100 Subject: [PATCH] Small improvements --- demos/lcd_driver_demo.py | 6 ++++-- main.py | 6 +++--- programs/{timer.py => timers.py} | 0 3 files changed, 7 insertions(+), 5 deletions(-) rename programs/{timer.py => timers.py} (100%) diff --git a/demos/lcd_driver_demo.py b/demos/lcd_driver_demo.py index e6981fb..19203b7 100644 --- a/demos/lcd_driver_demo.py +++ b/demos/lcd_driver_demo.py @@ -21,10 +21,12 @@ from utils import log def run(lcd): # Show off basic functionality of the lcd driver log(2, "Running the lcd driver demo") - lcd.putstr("Driver demo".center(16)) + + lcd.clear() + lcd.putstr("Driver demo".center(16)+"running...".center(16)) sleep(1) lcd.clear() - lcd.putstr("Lorem ipsum dolor sit amet") + lcd.putstr("Lorem ipsum dolor sit amet") sleep(1) lcd.show_cursor() sleep(1) diff --git a/main.py b/main.py index e1089a4..1cf17e4 100644 --- a/main.py +++ b/main.py @@ -20,8 +20,8 @@ btn_mapping = {"ok_btn": config.PIN_IN_BTN_1, "next_btn": config.PIN_IN_BTN_2} # extra functions to access the garbage collector -def timer(): - import programs.timer as t +def timers(): + import programs.timers as t t.run(config, btn_mapping, utils.log, lcdMenu) del t collect() @@ -47,7 +47,7 @@ def settings(): # create the main menu main_menu = lcdMenu(config.LCD, btn_mapping, scroll_direction=True, cycle=True, hide_menu_name=False, name="PROGRAMS") -main_programs = [("Timer", timer), +main_programs = [("Timers", timers), ("Manual", manual), ("Demos", demos), ("Settings", settings)] diff --git a/programs/timer.py b/programs/timers.py similarity index 100% rename from programs/timer.py rename to programs/timers.py