/*############################################################################# ## Author: Shaun Reed ## ## Legal: All Content (c) 2025 Shaun Reed, all rights reserved ## ## ## ## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com ## ############################################################################## */ #include "main.h" #include "i2c.h" #include "lcd.h" #include "ssd1306.h" extern "C" void app_main(void) { I2C_init(PIN_SDA, PIN_SCL); IPanelDevice lcd = SSD1306_new(); LCD d = LCD_init(&lcd); LCD_set_text_with_mode(&d, "Test test 12345678910", "test-text1", LV_LABEL_LONG_SCROLL, LV_ALIGN_CENTER); // TODO: Uncomment and test once LCD::lv_obj_t is a dynamic array. // LCD_set_text_with_mode(&d, "Test test changing text", // "test-text1", // LV_LABEL_LONG_SCROLL, // LV_ALIGN_CENTER); // // LCD_set_text(&d, "Hello hello hello hello hello hello hello hello!", // "test-text2"); // // LCD_set_text_with_mode(&d, "A random sentence with no meaning at all.", // "test-text3", // LV_LABEL_LONG_CLIP, // LV_ALIGN_BOTTOM_MID); }