![]() Rst = Pin(18, Pin.OUT) #set RFID rst to GP18 Sda = Pin(5, Pin.OUT) #set RFID sda to GP5 Miso = Pin(4, Pin.OUT) #set RFID miso to GP4 Mosi = Pin(7, Pin.OUT) #set RFID mosi to GP7 Sck = Pin(6, Pin.OUT) #set RFID sck to GP6 True = Pin(15, Pin.OUT) #set Green LED to GP15įalse = Pin(14, Pin.OUT) #set Red LED to GP14 Here is the full code with comments: import timeįrom machine import I2C, Pin, SPI #import I2C,Pin,SPI libraryįrom mfrc522 import MFRC522 #import RFID reader libraryīuzzer= Pin(16, Pin.OUT) #set buzzer to GP16 You can use Thonny to open pico-lesson7.py and load it to Pico later. You can download lesson 7 python code from In above circuit graph, you can see that: Pico Pins
0 Comments
Leave a Reply. |