mirror of
https://github.com/xreef/PCF8574_library.git
synced 2024-08-30 18:12:18 +00:00
Merge branch 'master' of https://github.com/xreef/PCF8574_library.git
This commit is contained in:
commit
1d18950d73
@ -1,4 +1,3 @@
|
|||||||
#include "Arduino.h"
|
|
||||||
/*
|
/*
|
||||||
* PCF8574 GPIO Port Expand
|
* PCF8574 GPIO Port Expand
|
||||||
* Blink all led
|
* Blink all led
|
||||||
@ -53,12 +52,12 @@ void setup()
|
|||||||
pcf8574.pinMode(i, OUTPUT);
|
pcf8574.pinMode(i, OUTPUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
Serial.print("Init pcf8574...");
|
Serial.print("Init pcf8574...");
|
||||||
if (pcf8574.begin()){
|
if (pcf8574.begin()){
|
||||||
Serial.println("OK");
|
Serial.println("OK");
|
||||||
}else{
|
} else {
|
||||||
Serial.println("KO");
|
Serial.println("KO");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
|
Loading…
Reference in New Issue
Block a user