Porting code Pico to STM32 #16942
Unanswered
Retro-Fitt
asked this question in
STM32 / Pyboard
Replies: 1 comment
-
The following runs without error: import machine
from pyb import Pin, Timer
FAULT_PIN = "Y6"
PROBE_PIN = "Y7"
CLEAN_PIN = "Y8"
SPEED_PIN = "X8"
p = Pin(SPEED_PIN)
tim14 = Timer(14, freq=1000)
speed_pwm = tim14.channel(1,Timer.PWM, pin=p)
ADC_PIN = "X11"
adc_val = machine.ADC(ADC_PIN) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am a micropython beginner/noob. Just find out github discussions. I want to port this code to my pyboard
I tried on my PYBV11 clone and code didn't work.
First it complained about uart port:
I changed 0 to 1
uart = UART(1, 230400)
Now this error is gone but it gives PWM error:
So i added this lines in main.py:
And changed pinouts according to this:
however now it gives this error:
Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions