mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Speed optimization
This commit is contained in:
parent
a6da2a60e7
commit
452b086a8e
@ -190,7 +190,7 @@ build_flags=
|
||||
-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
||||
; -- lvgl build options -----------------------------
|
||||
-D LV_MEM_SIZE=12288U ; 12kB lvgl memory
|
||||
-D LV_ATTRIBUTE_FAST_MEM=
|
||||
-D LV_ATTRIBUTE_FAST_MEM=IRAM_ATTR
|
||||
; -- ArduinoJson build options ----------------------------
|
||||
-D ARDUINOJSON_ENABLE_PROGMEM=1 ; for PROGMEM arguments
|
||||
-D ARDUINOJSON_ENABLE_STD_STRING=1 ; for std::string
|
||||
|
@ -169,9 +169,9 @@ IRAM_ATTR void loop()
|
||||
}
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP8266
|
||||
delay(2);
|
||||
delay((lv_task_get_idle() >> 6) + 1); // 1..2 ms
|
||||
#else
|
||||
delay(6);
|
||||
delay((lv_task_get_idle() >> 4) + 1); // 1..7 ms
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user