Skip to content
Browse files

Fixed RGB/GRB order bug in examples

  • Loading branch information...
1 parent c470be2 commit 92b5f8a348e41706737c15aa5e985189735be951 @PaintYourDragon PaintYourDragon committed Mar 14, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 examples/gridtest/gridtest.pde
  2. +2 −2 examples/strandtest/strandtest.pde
View
4 examples/gridtest/gridtest.pde
@@ -27,8 +27,8 @@ Example sketch for driving Adafruit WS2801 pixels!
// Can be any valid output pins.
// The colors of the wires may be totally different so
// BE SURE TO CHECK YOUR PIXELS TO SEE WHICH WIRES TO USE!
-int dataPin = 2; // Yellow wire on Adafruit Pixels
-int clockPin = 3; // Green wire on Adafruit Pixels
+uint8_t dataPin = 2; // Yellow wire on Adafruit Pixels
+uint8_t clockPin = 3; // Green wire on Adafruit Pixels
// Don't forget to connect the ground wire to Arduino ground,
// and the +5V wire to a +5V supply
View
4 examples/strandtest/strandtest.pde
@@ -27,8 +27,8 @@ Example sketch for driving Adafruit WS2801 pixels!
// Can be any valid output pins.
// The colors of the wires may be totally different so
// BE SURE TO CHECK YOUR PIXELS TO SEE WHICH WIRES TO USE!
-int dataPin = 2; // Yellow wire on Adafruit Pixels
-int clockPin = 3; // Green wire on Adafruit Pixels
+uint8_t dataPin = 2; // Yellow wire on Adafruit Pixels
+uint8_t clockPin = 3; // Green wire on Adafruit Pixels
// Don't forget to connect the ground wire to Arduino ground,
// and the +5V wire to a +5V supply

0 comments on commit 92b5f8a

Please sign in to comment.
Something went wrong with that request. Please try again.