For me when I open manage packages it simply does not search for the library, example im trying to search for luma.oled. when i type that i simply get error saying url open timed out. this only occurs when I use micropython for pi pico but doesnt occur when using python 3. Fault in python 3 is that i cannot save anything on the pico if i use it
Hmmmm, that is a really strange issue I've never seen, a good start might be to start fresh and reinstall Thonny and maybe reinstall MicroPython on the Pico. If that doesn't work, feel free to chuck a post on our forums, we have lots of maker eyes over there that may be able to help. forum.core-electronics.com.au/
Good question! That is another way to import things and will also import all the functions in a library, but you wont need to use the pre-fix. Lets say you used "from machine import*" It would be exactly the same as writing "from machine import pin" "from machine import ADC" "from machine import PWM" "from machine import UART" etc and so on for all the functions in the library. To call a function when imported like this you would not need to use the pre-fix so you would use: "pin.value()"
Great video everything explained really well thank you.
Very helpful for me as a beginner, thanks.
For me when I open manage packages it simply does not search for the library, example im trying to search for luma.oled. when i type that i simply get error saying url open timed out. this only occurs when I use micropython for pi pico but doesnt occur when using python 3. Fault in python 3 is that i cannot save anything on the pico if i use it
Hmmmm, that is a really strange issue I've never seen, a good start might be to start fresh and reinstall Thonny and maybe reinstall MicroPython on the Pico. If that doesn't work, feel free to chuck a post on our forums, we have lots of maker eyes over there that may be able to help.
forum.core-electronics.com.au/
thank you🙏
How about
From machine import *
How does that differ from the import examples you showed ?
Good question! That is another way to import things and will also import all the functions in a library, but you wont need to use the pre-fix.
Lets say you used "from machine import*"
It would be exactly the same as writing
"from machine import pin"
"from machine import ADC"
"from machine import PWM"
"from machine import UART"
etc and so on for all the functions in the library. To call a function when imported like this you would not need to use the pre-fix so you would use:
"pin.value()"
@@Core-Electronics 🙏
tip : thonny lets you copy the whole pico /lib to your pc, no need to enter the lib folder and copy/download each file 1 by 1 !
Thanks for the tip!
Sehr gut
Pain cured i love you
thank you
thats such a pain
10 minutes and 5 seconds....
thank god I found this video 🥹