aboutsummaryrefslogtreecommitdiff
path: root/Arduino
diff options
context:
space:
mode:
Diffstat (limited to 'Arduino')
-rw-r--r--Arduino/i2cPixelSlave.ino5
1 files changed, 2 insertions, 3 deletions
diff --git a/Arduino/i2cPixelSlave.ino b/Arduino/i2cPixelSlave.ino
index 9ff5e58..fa5bf45 100644
--- a/Arduino/i2cPixelSlave.ino
+++ b/Arduino/i2cPixelSlave.ino
@@ -2,7 +2,7 @@
#include <Adafruit_NeoPixel.h>
#define PIN 6
-#define PIXELS 10
+#define PIXELS 10 // Set this to the number of pixels in yout strip
#define SLAVE_ADDRESS 0x04
// Parameter 1 = number of pixels in strip
@@ -226,7 +226,7 @@ void testCoid() {
flashColor(0, 204, 0, 1100);
}
-int flashColor(byte Red, byte Green, byte Blue, int n) {
+void flashColor(byte Red, byte Green, byte Blue, long n) {
byte Rstart=0;
byte Gstart=0;
@@ -271,6 +271,5 @@ int flashColor(byte Red, byte Green, byte Blue, int n) {
}
strip.show();
- return 0x01;
}