Hello everybody!
Tell you how can you invert SSD1306 every 10 seconds
In his Arduino projects thus reached uniform pixel burnout
How to do it with Esphome?
Hello everybody!
Tell you how can you invert SSD1306 every 10 seconds
In his Arduino projects thus reached uniform pixel burnout
How to do it with Esphome?
See the invert
option.
yes, i see this option, but how to use it in lambda? or how to switch it in the external function “interval”?
can you tell me the instructions on how to use options outside of the parent function?
I don’t think you can do that, as invert
is part of the screen setup. I think you will have to write your code using two global variables that you swap between COLOR_ON
and COLOR_OFF
every ten seconds, and explicitly specify the colour in all text and drawing calls.
There is an invertDisplay
function in the base Adafruit library (currently line 1164 of this file) but it’s not exposed in the ESPHome implementation. The invert
status is only set in the setup
(this file).