| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
DFR0013 Datasheet(PDF) 4 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0013 Datasheet(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 |
|
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |