add code comment
This commit is contained in:
parent
a0290e715e
commit
1097e8df1d
8 changed files with 286 additions and 27 deletions
22
ESPMegaPROv3 Tester/src/input_demo.cpp.disabled
Normal file
22
ESPMegaPROv3 Tester/src/input_demo.cpp.disabled
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include <Arduino.h>
|
||||
#include <PCF8574.h>
|
||||
|
||||
PCF8574 inputbank1(0x21);
|
||||
|
||||
void setup() {
|
||||
Wire.begin(14,33);
|
||||
Serial.begin(9600);
|
||||
boolean connected = inputbank1.begin();
|
||||
Serial.println("connection state = "+String(connected));
|
||||
inputbank1.write(0, HIGH);
|
||||
delay(50);
|
||||
inputbank1.write(1, HIGH);
|
||||
delay(50);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
for(int i=2;i<8;i++) {
|
||||
Serial.println(inputbank1.read(i));
|
||||
delay(100);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue