| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
DFR0013 bảng dữ liệu(PDF) 4 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0013 bảng dữ liệu(HTML) 4 Page - DFROBOT |
|
4 / 5 page ![]() 4 #include "WProgram.h" 5 #endif 6 7 #include "clsPCA9555.h" 8 #include "Wire.h" 9 10 11 PCA9555 ioport(0x20); 12 13 void setup() 14 { 15 ioport.pinMode(7, OUTPUT); //Set GPIOs pinMode LED 16 ioport.pinMode(8, INPUT); //Button 17 } 18 19 void loop() 20 { 21 if (ioport.digitalRead(ED8) == LOW) { 22 ioport.digitalWrite(7, LOW); //Turn off Led 23 } 24 25 if (ioport.digitalRead(ED8) == HIGH) { 26 ioport.digitalWrite(7, HIGH); //Turn on Led 27 } 28 29 } Library Explanation Library Functions pinMode() same as standard Arduino digitalRead() same as Arduino digitalWrite() same as Arduino |
|
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |