We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb550c6 commit f880604Copy full SHA for f880604
content/micropython/01.basics/05.digital-analog-pins/digital-analog-pins.md
@@ -138,10 +138,9 @@ while True:
138
```
139
In this example:
140
141
-- `pin1` is configured as an output pin with no pull-up or pull-down resistors.
142
-- `timer1` is initialized with a frequency of 1000 Hz.
143
-- `channel1` is created on timer 3, channel 1, and is set to PWM mode.
144
-- `channel1.pulse_width_percent(duty)` sets the duty cycle of the PWM signal as a percentage between 0 and 100.
+- `Pin(15)` is attached to PWM
+- `duty` is set at 3000
+- `freq` is set at 1 Hz
145
146
### PWM on the GIGA R1
147
0 commit comments