We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe6867 commit 04e01fdCopy full SHA for 04e01fd
docs/modules/ledc.md
@@ -15,7 +15,7 @@ Configures a PIN to be controlled by the LEDC system.
15
16
#### Syntax
17
```lua
18
-ledc.setup({
+myChannel = ledc.newChannel({
19
gpio=x,
20
bits=ledc.TIMER_10_BIT || ledc.TIMER_11_BIT || ledc.TIMER_12_BIT || ledc.TIMER_13_BIT || ledc.TIMER_14_BIT || ledc.TIMER_15_BIT,
21
mode=ledc.HIGH_SPEED || ledc.LOW_SPEED,
@@ -53,7 +53,7 @@ List of configuration tables:
53
54
#### Example
55
56
57
gpio=19,
58
bits=ledc.TIMER_13_BIT,
59
mode=ledc.HIGH_SPEED,
0 commit comments