전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

104020002 데이터시트(PDF) 13 Page - Seeed Technology Co.,Ltd.

부품명 104020002
상세설명  Grove - Red LED
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  SEEEDSTUDIO [Seeed Technology Co.,Ltd.]
홈페이지  https://www.seeedstudio.com/
Logo SEEEDSTUDIO - Seeed Technology Co.,Ltd.

104020002 데이터시트(HTML) 13 Page - Seeed Technology Co.,Ltd.

Back Button 104020002 Datasheet HTML 9Page - Seeed Technology Co.,Ltd. 104020002 Datasheet HTML 10Page - Seeed Technology Co.,Ltd. 104020002 Datasheet HTML 11Page - Seeed Technology Co.,Ltd. 104020002 Datasheet HTML 12Page - Seeed Technology Co.,Ltd. 104020002 Datasheet HTML 13Page - Seeed Technology Co.,Ltd. 104020002 Datasheet HTML 14Page - Seeed Technology Co.,Ltd. 104020002 Datasheet HTML 15Page - Seeed Technology Co.,Ltd. 104020002 Datasheet HTML 16Page - Seeed Technology Co.,Ltd. 104020002 Datasheet HTML 17Page - Seeed Technology Co.,Ltd.  
Zoom Inzoom in Zoom Outzoom out
 13 / 17 page
background image
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")



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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