rename folder to template project

This commit is contained in:
Siwat Sirichai 2023-01-22 23:10:40 +07:00
parent 1097e8df1d
commit ea647bc465
13 changed files with 0 additions and 2 deletions

View 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);
}
}