From f880604eb2052c3a628e1f01a0c17ca4b60e4606 Mon Sep 17 00:00:00 2001 From: pedromsousalima <32345730+pedromsousalima@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:11:46 +0200 Subject: [PATCH] Updated --- .../05.digital-analog-pins/digital-analog-pins.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/micropython/01.basics/05.digital-analog-pins/digital-analog-pins.md b/content/micropython/01.basics/05.digital-analog-pins/digital-analog-pins.md index 84b6716817..076c06ddde 100644 --- a/content/micropython/01.basics/05.digital-analog-pins/digital-analog-pins.md +++ b/content/micropython/01.basics/05.digital-analog-pins/digital-analog-pins.md @@ -138,10 +138,9 @@ while True: ``` In this example: -- `pin1` is configured as an output pin with no pull-up or pull-down resistors. -- `timer1` is initialized with a frequency of 1000 Hz. -- `channel1` is created on timer 3, channel 1, and is set to PWM mode. -- `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 ### PWM on the GIGA R1