My understanding is if you import Machine your importing the whole library so you shouldnât need to import pin later. However I have found sometimes you do ? Have you noticed that ?
I believe import machine allows you to really open up options on what hardware functions you want to utilize. So in my example, although through my muscle memory and not looking back, we don't need the line "from machine import Pin" cause we have "import machine" so you are correct in your understanding that it contains specific functions on the Pico; it accesses all sorts of functions as in PIN, chip internal temp and so much more than I'm discovering on a regular basis.
@@RamboPi I think what I am saying it that even after importing the entire machine library I have found on occasions I still have to import Pin from machine. Have you seen this or am going mad?
Thank you for this video, this is helping me with my final project :D
Glad it helped!
Thank You
does this code work for esp32?
So you don't need any library from internet to ''install'' the rain sensor?
Nice content. Thanks you.
Nope, unless it's embedded with the initial MicroPython install but I doubt it. It just leverages the Pico's analog pins
My understanding is if you import Machine your importing the whole library so you shouldnât need to import pin later. However I have found sometimes you do ? Have you noticed that ?
I believe import machine allows you to really open up options on what hardware functions you want to utilize. So in my example, although through my muscle memory and not looking back, we don't need the line "from machine import Pin" cause we have "import machine" so you are correct in your understanding that it contains specific functions on the Pico; it accesses all sorts of functions as in PIN, chip internal temp and so much more than I'm discovering on a regular basis.
@@RamboPi I think what I am saying it that even after importing the entire machine library I have found on occasions I still have to import Pin from machine. Have you seen this or am going mad?
@@allthegearnoidea6752 You are absolutely right :) That's I why I have the over kill command. "If it doesn't break it add it to be safe"