It should be possible to create a 'machine.py' shim which allows most Pico code to run 'as is' with no change. I have done that for basic 'Pin' stuff but don't know about 'PWM'. I presume 'gpiozero' supports that but did not check.The main difference will probably be in the use of the GPIO i.e. Pi 5 using the gpiozero library whereas Pico uses machine
The 'time' methods this particular code uses may prove more problematic to convert, plus hoping to delay for microseconds.
Statistics: Posted by hippy — Wed Mar 06, 2024 3:43 pm