atctwo / watch-II

Firmware for my custom smart-ish-watch, mark II
MIT License
1 stars 0 forks source link

fading doesn't work #18

Closed atctwo closed 4 years ago

atctwo commented 4 years ago

Commit 2e6735d467353c95f9583102ee713171329cfae2 mostly works, although the tft backlight brightness isn't being changed when switching states. You can still set the maximum brightness and torch brightness, so ledc probably still works.

atctwo commented 4 years ago

The screen fading system uses the delay() arduino function, which , on the ESP32, depends on the FreeRTOS function vTaskDelay(). Because of how delay() is implemented, delays less than 10ms wouldn't do anything. The FreeRTOS tick rate is set to 100 Hz by default, and this issue was resolved by setting the tick rate to 1000 Hz.