aboutsummaryrefslogtreecommitdiff
path: root/Arduino
diff options
context:
space:
mode:
authorJakob Stendahl <jakob@Jakobs-MacBook-Pro.local>2016-09-22 17:07:50 +0200
committerJakob Stendahl <jakob@Jakobs-MacBook-Pro.local>2016-09-22 17:07:53 +0200
commit0c0e5022ed2e03e422440fb08cf50a9e550c2673 (patch)
treeeade58fec821dfeb4480662865eddf99ebbd03cd /Arduino
parent192d3f30175a8c21118a891be4a672d9770d927f (diff)
downloadi2c-Neopixel-0c0e5022ed2e03e422440fb08cf50a9e550c2673.tar.gz
i2c-Neopixel-0c0e5022ed2e03e422440fb08cf50a9e550c2673.zip
Changed a Function to a Void
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;
}