| Electronic Components Datasheet Search |
|
104020002 Datasheet(PDF) 9 Page - Seeed Technology Co.,Ltd. |
|
|
|||||||||||||||||||||||||||||
104020002 Datasheet(HTML) 9 Page - Seeed Technology Co.,Ltd. |
|
9 / 17 page ![]() 7/23/22, 9:41 PM Grove - Red LED - Seeed Wiki https://wiki.seeedstudio.com/Grove-Red_LED/ 9/17 Step 3. Excute below command to run the code. If you connect the Red LED to the different port of the Base Hat, instead of excuting python grove_led.py 12, you should run the following command. Following is the grove_led.py code. 1 cd ~ 2 git clone https://github.com/Seeed-Studio/grove.py 1 cd yourpath/grove.py/grove 2 python3 grove_led.py 12 python3 grove_led.py portnumber 1 from grove.gpio import GPIO 2 3 4 class GroveLed(GPIO): 5 def __init__(self, pin): 6 super(GroveLed, self).__init__(pin, GPIO.OUT) 7 8 def on(self): 9 self.write(1) 10 11 def off(self): 12 self.write(0) 13 14 15 Grove = GroveLed 16 17 18 def main(): 19 import sys |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |