I try to use PWM timer with a portenta.
I follow the example provided in the example folder for the portenta:
import time from pyb import Pin, Timer tim = Timer(4, freq=1000) # Frequency in Hz ch1 = tim.channel(1, Timer.PWM, pin=Pin("P7"), pulse_width_percent=50)
But i have the message “Pin(P7) doesn’t exist”
I have try differnet namming for the pin.
When i put Pin(“PC7”) i then have the following error:
"Pin(C7) doesn’t have an af for timer(4)
I have try randomly and if i put Pin(PB7) it doesn’t spit any error message
But according to the arduino pinout there is no PB7
What’s going on ?
I want to try the one name “PC7” on the portenta pinout diagram.
Where can i find the proper pin name to use pwm?