Skip to content

Commit 49875c3

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP32/examples/AnalogOut/LEDCGammaFade/LEDCGammaFade.ino

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

2222
// define starting duty, target duty and maximum fade time
2323
#define LEDC_START_DUTY (0)
24-
#define LEDC_TARGET_DUTY (4095)
24+
#define LEDC_TARGET_DUTY (4096)
2525
#define LEDC_FADE_TIME (2000)
2626

2727
// gamma factor for mathematical calculation

0 commit comments

Comments
 (0)