Help with PWM - Pin weirdness after calling PWM() using imports? #15938
Unanswered
jouellnyc
asked this question in
Hardware & Peripherals
Replies: 1 comment 5 replies
-
When a To turn a PWM pin on, set duty to 100%. To turn it off, set duty to 0. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good day MP'ers
Putting a small toy car together, using a l9110 motor control and simple motor using
MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico with RP2040
It seems like the value() of the PIN gets set to 0 zero when creating an instance PWM when using imports but not when directly creating the instance?. I am having trouble tracking the behavior down. It also seems I cannot control it or set it back once instantiated? I must be doing something wrong? I have tried different pins just for contrast.
Snipping non-needed text:
Output with imports:
On the Repl directly I do not see this behavior:
Beta Was this translation helpful? Give feedback.
All reactions