PWM on Arduino Giga MicroPython Firmware

Hello everyone,

From Official Arduino MicroPython document,
I got this example:

from machine import Pin, PWM, ADC

pwm = PWM(Pin(15))
duty = 30000 #between 0-65000

pwm.freq(1000)

while True:
    pwm.duty_u16(duty)

I run this example on Arduino Giga R1 WiFi, and get an error as below:

PY: sync filesystems
MPY: soft reboot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: can't import name PWM
>>> 

The firmware version is: MicroPython v1.23.0 on 2024-06-02; Arduino GIGA R1 WiFi with STM32H747

It seems like the current firmware does not have the PWM module.
I also tested with ESP32, Raspberry Pi Pico. These hardware supports the PWM module.

Will Arduino MicroPython Firmware add the PWM module in the near future ?

Thank you!

Hello @IoT_hobbyist ,

Thank you for reporting this. We have recently updated the documentation regarding PWM pins on the Arduino Giga R1 using MicroPython. Please give it a try with the updated information and let us know your feedback.

Wishing you a great day, and thanks again for your contribution!