| 전자부품 데이터시트 검색엔진 |
|
104020002 데이터시트(PDF) 10 Page - Seeed Technology Co.,Ltd. |
|
|
|||||||||||||||||||||||||||||
104020002 데이터시트(HTML) 10 Page - Seeed Technology Co.,Ltd. |
|
10 / 17 page ![]() 7/23/22, 9:41 PM Grove - Red LED - Seeed Wiki https://wiki.seeedstudio.com/Grove-Red_LED/ 10/17 Play With Raspberry Pi (with GrovePi_Plus) Hardware Step 1. Prepare the below stuffs: 20 import time 21 22 if len(sys.argv) < 2: 23 print('Usage: {} pin'.format(sys.argv[0])) 24 sys.exit(1) 25 26 led = GroveLed(int(sys.argv[1])) 27 28 while True: 29 led.on() 30 time.sleep(1) 31 led.off() 32 time.sleep(1) 33 34 35 if __name__ == '__main__': 36 main() Success If everything goes well, you will be able to see the led on and off. Attention For most of the grove modules, you need to add the pin number parameter, as in this example python3 grove_led.py 12 , 12 is the chosen GPIO pin and the output from pin 12 will feed the led. |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |