Timer_one.init(freq=4, mode=Timer.PERIODIC, callback=BlinkLED) Timer_one.init(freq=10, mode=Timer.PERIODIC, callback=BlinkLED) Timer_two = Timer() #Initialize state variable. Timer_one = Timer() #Initialize timer_two. Led = Pin(25, Pin.OUT) #Initialize timer_one. ''' from machine import Pin, Timer #Initialize the onboard LED as ouput And initialize timer_one, trigger LED blink period either 100mSec or 250mSec or 1Sec. The timer_two is used for changing the state Sec intervalĬ. ''' Description: Onboard Timer / Scheduler Program.ĭate : 03rdJuly2021 A. The “main.py” is the first starting file, which start executes after power up. The file INFO_UF2.TXT, contains the information about RPi Pico boot loader version, etc.ĭrag and drop the needed python (“.py”) files. The file INDEX.HTM, contains the “welcome page” and information about download option of MicroPython firmware “micropython.uf2”.ĭownload the firmware and save it to local drive.ĭrag and drop the “micropython.uf2” file to RPi Pico drive, root folder. Drag and drop the needed python (“.py”) files. Now the RPi Pico will be identified as removable mass storage drive, called RPI-RP2 on PC or Laptop. After 3 to 10 seconds, release the “BOOTSEL” switch. Pressing “BOOTSEL” switch, then plug in into micro-USB cable to laptop. “īOOTSEL” switch is used for selecting two start up modes of RPi Pico. Plug in the RPi Pico to micro-USB cable for connecting to PC or Laptop. Select the Tools - Options – Interpreter – MicroPython (Raspberry Pi Pico) Connect the RPi Pico board to USB port of the PC / Laptop as illustrated.ĭownload and install the Thonny Micro Python integrated development environment (IDE) from following web site or githhub.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |