Lyr3x / Roode

A reliable smart home people counter based on VL53L1X and ESPHome
The Unlicense
150 stars 44 forks source link

Add configurable OLED brightness #4

Closed Lyr3x closed 5 years ago

Lyr3x commented 5 years ago

To change the OLED brightness we can use the sendCommand(uint8_t c) function. First we need to send 0x81 and after that we can set the brightnes to values between 0 and 255.

oled.sendCommand(0x81);
oled.sendCommand(1); 
Lyr3x commented 5 years ago

Added with 1d0a8f650277213b957a2fd9e31e6639e869a17e