Skip to content

Commit 9972315

Browse files
committed
Corrrect readme example. #set_duty instead of #write
1 parent 2dd08ca commit 9972315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ESP32::LEDC.timer_config(group, timer, resolution, frequency)
3232
ESP32::LEDC.channel_config(pin, group, timer, channel)
3333
3434
# Set the built-in LED to 1/8 brightness.
35-
ESP32::LEDC.write(group, channel, 128)
35+
ESP32::LEDC.set_duty(group, channel, 128)
3636
```

0 commit comments

Comments
 (0)