angepasst
This commit is contained in:
+1
-4
@@ -6,7 +6,6 @@
|
|||||||
#define AMOUNTOFPORTS 8 // currently max 16 ports are supported
|
#define AMOUNTOFPORTS 8 // currently max 16 ports are supported
|
||||||
#define EXPANDER1ADDRESS 0x21 // address of expander 1
|
#define EXPANDER1ADDRESS 0x21 // address of expander 1
|
||||||
|
|
||||||
|
|
||||||
PCF8575 expander1(EXPANDER1ADDRESS);
|
PCF8575 expander1(EXPANDER1ADDRESS);
|
||||||
uint8_t portStates[AMOUNTOFPORTS];
|
uint8_t portStates[AMOUNTOFPORTS];
|
||||||
uint8_t lastStates[AMOUNTOFPORTS] = {0};
|
uint8_t lastStates[AMOUNTOFPORTS] = {0};
|
||||||
@@ -48,8 +47,7 @@ void setup() {
|
|||||||
{
|
{
|
||||||
Serial.println(" => connected!!");
|
Serial.println(" => connected!!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Setup NeoPixel
|
//Setup NeoPixel
|
||||||
NeoPixel_init(AMOUNTOFPORTS); // Initialisierung der NeoPixel
|
NeoPixel_init(AMOUNTOFPORTS); // Initialisierung der NeoPixel
|
||||||
for (uint8_t i = 0; i < AMOUNTOFPORTS; i++) {
|
for (uint8_t i = 0; i < AMOUNTOFPORTS; i++) {
|
||||||
@@ -59,7 +57,6 @@ void setup() {
|
|||||||
};
|
};
|
||||||
pixels->show();
|
pixels->show();
|
||||||
|
|
||||||
|
|
||||||
Serial.println("Setup End...");
|
Serial.println("Setup End...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user