2025-02-14 15:02:49 -05:00
|
|
|
#include "display.h"
|
2025-02-13 19:31:11 -05:00
|
|
|
|
2025-02-14 16:48:04 -05:00
|
|
|
I2C i2c;
|
|
|
|
|
2025-02-13 19:31:11 -05:00
|
|
|
void setup()
|
|
|
|
{
|
2025-02-14 16:48:04 -05:00
|
|
|
Display d(i2c);
|
2025-02-13 19:31:11 -05:00
|
|
|
|
2025-02-14 17:19:13 -05:00
|
|
|
d.set_text("Test test 12345678910",
|
|
|
|
"test-text1",
|
|
|
|
LV_LABEL_LONG_SCROLL,
|
|
|
|
LV_ALIGN_CENTER);
|
2025-02-14 15:50:35 -05:00
|
|
|
|
2025-02-14 17:19:13 -05:00
|
|
|
d.set_text("Hello hello hello hello hello hello hello hello!", "test-text2");
|
2025-02-14 15:56:15 -05:00
|
|
|
|
2025-02-14 17:19:13 -05:00
|
|
|
d.set_text("A random sentence with no meaning at all.",
|
|
|
|
"test-text3",
|
|
|
|
LV_LABEL_LONG_CLIP,
|
|
|
|
LV_ALIGN_BOTTOM_MID);
|
2025-02-13 19:31:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void loop() { }
|