This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This requires LVGL 9.3+ (currently in dev) | |
| void rounder_event_cb(lv_event_t *e) | |
| { | |
| lv_area_t *area = lv_event_get_invalidated_area(e); | |
| uint16_t x1 = area->x1; | |
| uint16_t x2 = area->x2; | |
| uint16_t y1 = area->y1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Adafruit_GFX.h> | |
| #include <Adafruit_ST7735.h> | |
| #include <ChronosESP32.h> | |
| // Button pins | |
| #define BTN_UP 12 | |
| #define BTN_DOWN 13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import os | |
| import glob | |
| def read_c_array(input_file): | |
| """Reads the C array from the input file and extracts the hex data.""" | |
| with open(input_file, "r") as f: | |
| content = f.read() | |
| # Use a regex to find the array of hex values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import junit.framework.TestCase.assertEquals | |
| import junit.framework.TestCase.assertTrue | |
| fun main() { | |
| val attendee = Attendee(sessions = listOf("Android","Kotlin")) | |
| assertEquals( | |
| true, // expected | |
| attendee is Collection<String> // actual | |
| ) |