Advaith Menon [Sat, 22 Nov 2025 23:24:54 +0000 (18:24 -0500)]
Add "back" functionality for clock
* Add button events to a FreeRTOS queue
* Read button events from a FreeRTOS queue in the lcd_clock_loop
function to determine when to exit the clock screen
Advaith Menon [Tue, 18 Nov 2025 22:10:45 +0000 (17:10 -0500)]
Add clock AM/PM display code, fix ghost arms and phase offset
* Fix the problem of ghost arms/arms not being cleared out
* Fix the issue wherein the angles are offset pi/2 from where they should be
* Add digital time indicator which partially works (says 00 instead of 12)
* Make the font "SMART WATCH OS" bold
* Reduce sampling period to 500 ms to allow regular 1s updates with no
skips
* Add slower_baud to allow reducing baud rate back to 9600
* Allow lcd_clock_draw_hand to accept color
Advaith Menon [Tue, 18 Nov 2025 19:51:02 +0000 (14:51 -0500)]
Watch Face Drawing Code (Untested)
* Modify APPSCR macros to allow variable number of apps per
screen, allowing dynamic changing of these values via a
Settings interface
* Comment old macro code in lcd_homepage_loop
* Add lcd_draw_clock_face to draw a circular clock face with
hour ticks using trigonometry
* Add lcd_clock_draw_hand to draw clock hands in an easy way
* Modify lcd_clock_loop to use the new lcd_draw_clock_face
and lcd_clock_draw_hand functions
Advaith Menon [Mon, 17 Nov 2025 08:59:29 +0000 (03:59 -0500)]
Create splash screen
* Modify LCD_WIDTH and LCD_HEIGHT to correct values
* Mofify gl_setbaudWait to accept a baud change callback
* Add animation to display "SMART WATCH OS" on the screen
* Add home screen tiles generation functionality
* Test clock functionality in a debug mode
Advaith Menon [Mon, 17 Nov 2025 04:41:53 +0000 (23:41 -0500)]
Add working uLCD Library
* Namespace all 4DGL extern functions with gl_
* Pass gl_display_t * to all objects to allow using multiple ULCDs
* Add a 2sec timeout for the initialization since we need to send
but there's no ACK
* Modify test program to display a Japanese flag
Advaith Menon [Sun, 16 Nov 2025 22:58:44 +0000 (17:58 -0500)]
Initial uLCD Library Port
* Copied over 4D Systems Goldelox-Linux Library
* Not tested yet, but most Linux syscalls replaced with a fn
pointer (like in the ICM-20948 library)
Advaith Menon [Sun, 16 Nov 2025 22:57:21 +0000 (17:57 -0500)]
Update GPIO Input Code, Add Output
* Add gpio_reset_pin to change pin modes to GPIO
* See https://github.com/espressif/esp-idf/issues/11975 for more info