Skip to content

Commit 5b29c68

Browse files
authored
fix(ledc): revert back Hue range to 0..255
1 parent c8d0a9f commit 5b29c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP32/examples/AnalogOut/ledcWrite_RGB/ledcWrite_RGB.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const boolean invert = true; // set true if common anode, false if common catho
1717

1818
uint8_t color = 0; // a value from 0 to 255 representing the hue
1919
uint32_t R, G, B; // the Red Green and Blue color components
20-
uint16_t brightness = 255; // 255 is maximum brightness, but can be changed.
20+
uint8_t brightness = 255; // 255 is maximum brightness, but can be changed. Might need 256 for common anode to fully turn off.
2121

2222
// the setup routine runs once when you press reset:
2323
void setup() {

0 commit comments

Comments
 (0)