Skip to content

Commit 71f0a55

Browse files
authored
feat(ledc): Fix target duty value for LEDC to 4096 (maximum)
1 parent 4cc8ba0 commit 71f0a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP32/examples/AnalogOut/LEDCFade/LEDCFade.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
// define starting duty, target duty and maximum fade time
1919
#define LEDC_START_DUTY (0)
20-
#define LEDC_TARGET_DUTY (4095)
20+
#define LEDC_TARGET_DUTY (4096)
2121
#define LEDC_FADE_TIME (3000)
2222

2323
bool fade_ended = false; // status of LED fade

0 commit comments

Comments
 (0)