Hi, I'm new and I wanted to know if the micropython can be connected with python 3 for windows 10.
I want to make a circuit that has buttons on the raspberry pi pico and when I press a physical button, in windows 10 a program is executed.
Can you add pip modules in micropython?
Excuse the ignorance.
Thanks.
Connect raspberry pi pico (micropython with thonny) to python 3 on windows 10
Re: Connect raspberry pi pico (micropython with thonny) to python 3 on windows 10
The easiest way to do this is to have the Pico send messages (using print() ) which a program on your PC reads.
On a PC, you can connect to the serial port from Python using the "pyserial" module.
You can also use the pyboard.py module (see http://docs.micropython.org/en/latest/r ... rd-library) to automate this. i..e you could have a get_button() method that blocks until a button is pressed, and then returns the button number. Then your PC code would call pyb.exec('get_button()') to get the next button event.
Sort of, but it's mostly useful for boards that have WiFi. On the Pico it is easier to just copy the files from whatever library you're using.
Re: Connect raspberry pi pico (micropython with thonny) to python 3 on windows 10
Thank you Jimmo for removing that question I had, now I'm going to learn.