| Electronic Components Datasheet Search |
|
104020002 Datasheet(PDF) 13 Page - Seeed Technology Co.,Ltd. |
|
|
|||||||||||||||||||||||||||||
104020002 Datasheet(HTML) 13 Page - Seeed Technology Co.,Ltd. |
|
13 / 17 page ![]() 7/23/22, 9:41 PM Grove - Red LED - Seeed Wiki https://wiki.seeedstudio.com/Grove-Red_LED/ 13/17 Here is the grove_led_blink.py code. Step 4. We will see the led on and off. 1 cd ~/GrovePi/Software/Python 2 python3 grove_led_blink.py 1 import time 2 from grovepi import * 3 4 # Connect the Grove LED to digital port D4 5 led = 4 6 7 pinMode(led,"OUTPUT") 8 time.sleep(1) 9 10 print ("This example will blink a Grove LED connected to 11 print (" ") 12 print ("Connect the LED to the port labele D4!" ) 13 14 while True: 15 try: 16 #Blink the LED 17 digitalWrite(led,1) # Send HIGH to switch on 18 print ("LED ON!") 19 time.sleep(1) 20 21 digitalWrite(led,0) # Send LOW to switch off 22 print ("LED OFF!") 23 time.sleep(1) 24 25 except KeyboardInterrupt: # Turn LED off before sto 26 digitalWrite(led,0) 27 break 28 except IOError: # Print "Error" if commun 29 print ("Error") |
|
|
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 |