Only one PWM timer?
-
from machine import PWM
pwm0 = PWM(0, frequency=1)
pwm1 = PWM(1, frequency=50000)#two LEDs installed @ P3 and P12
blue = pwm0.channel(0, pin='P3', duty_cycle=0.5)
white = pwm1.channel(1, pin='P12', duty_cycle=0.5)Blue led blinks per second, the white led once per 4 second. Specifications state 4 timers. Tried all channels.
-
Thanks for the report. We'll look into that. Would you be able to report it here:
https://github.com/pycom/pycom-micropython/issues
Thanks again.
Cheers,
Daniel -
-
has this been fixed by now?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login