Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f880604

Browse files
Updated
1 parent eb550c6 commit f880604

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎content/micropython/01.basics/05.digital-analog-pins/digital-analog-pins.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,9 @@ while True:
138138
```
139139
In this example:
140140

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.
141+
- `Pin(15)` is attached to PWM
142+
- `duty` is set at 3000
143+
- `freq` is set at 1 Hz
145144

146145
### PWM on the GIGA R1
147146

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /