Skip to content

Commit f516682

Browse files
Apply suggestions from code review
Co-authored-by: Karl Söderby <35461661+karlsoderby@users.noreply.github.com>
1 parent f880604 commit f516682

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ In this example:
144144

145145
### PWM on the GIGA R1
146146

147-
On STM32 boards like the Arduino GIGA R1, PWM is handled differently. You need to use the `Timer` class along with the `Pin` class from the `pyb` module.
147+
On STM32 boards like the [Arduino GIGA R1 WiFi](https://store.arduino.cc/products/giga-r1-wifi), PWM is handled differently. You need to use the `Timer` class along with the `Pin` class from the `pyb` module.
148+
148149
Here's the correct code that works on these boards:
149150

150151
```python
@@ -162,7 +163,8 @@ In this example:
162163
- `tim` is a `Timer` object initialized with timer number 2 and a frequency of 1000 Hz.
163164
- `ch` is a PWM channel created on timer 2, channel 1, and is associated with pin `p`.
164165
- `ch.pulse_width_percent(25)` sets the duty cycle of the PWM signal to 25%.
165-
- `'A13'` is the pin markedas **DAC1**
166+
- `'A13'` is marked as **DAC1** on the GIGA R1 WiFi
167+
166168

167169

168170
- Pin names and timer configurations, may vary between different STM32 boards. For more information, check out the [GIGA R1 MicroPython Guide](https://docs.arduino.cc/tutorials/giga-r1-wifi/giga-micropython/).

0 commit comments

Comments
 (0)