Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ build_flags =
lib_deps =
SPI
;Wire
lovyan03/LovyanGFX@^1.2.7
lovyan03/LovyanGFX@^1.2.26
lvgl/lvgl@^8.4.0
fastled/FastLED@^3.9.14
adafruit/Adafruit ADS1X15@^2.5.0
fastled/FastLED@^3.10.3
adafruit/Adafruit ADS1X15@^2.6.2
adafruit/Adafruit INA3221 Library@^1.0.1
2 changes: 1 addition & 1 deletion squarelinestudio/SquareLine_Project.spj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/led_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extern Preferences preferences;
extern "C" {
#endif

#define MAXIMUM_NUMBER_OF_LEDS 120
#define MAXIMUM_NUMBER_OF_LEDS 200
#define NUMBER_OF_FANS 4
extern CRGB leds[MAXIMUM_NUMBER_OF_LEDS];
extern uint8_t value_r;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/screens/ui_AboutScreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ lv_obj_set_height( ui_FWLabel, LV_SIZE_CONTENT); /// 1
lv_obj_set_x( ui_FWLabel, 187 );
lv_obj_set_y( ui_FWLabel, 133 );
lv_obj_set_align( ui_FWLabel, LV_ALIGN_CENTER );
lv_label_set_text(ui_FWLabel,"ESP32S3 N16R2\nV1-20250928");
lv_label_set_text(ui_FWLabel,"ESP32S3 N16R2\nV1-20260801");
lv_obj_set_style_text_color(ui_FWLabel, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT );
lv_obj_set_style_text_opa(ui_FWLabel, 255, LV_PART_MAIN| LV_STATE_DEFAULT);
lv_obj_set_style_text_font(ui_FWLabel, &lv_font_montserrat_10, LV_PART_MAIN| LV_STATE_DEFAULT);
Expand Down
7 changes: 4 additions & 3 deletions src/ui/ui_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ void num_of_leds_event_cb(lv_event_t * e)

if (event_code == LV_EVENT_VALUE_CHANGED) {
rgb_led_count = static_cast<uint16_t>(atoi(lv_textarea_get_text(target)));
if (rgb_led_count > 120) {
rgb_led_count = 120;
lv_textarea_set_text(target, "120");
if (rgb_led_count > MAXIMUM_NUMBER_OF_LEDS) {
rgb_led_count = MAXIMUM_NUMBER_OF_LEDS;
snprintf(label_text, sizeof(label_text), "%d", MAXIMUM_NUMBER_OF_LEDS);
lv_textarea_set_text(target, label_text);
}
}
}
Expand Down