updated to large led
This commit is contained in:
parent
a8a7222e03
commit
a88eab9ee5
4 changed files with 117 additions and 14 deletions
|
@ -41,7 +41,7 @@ uint8_t clockPin = 3; // Green wire on Adafruit Pixels
|
|||
|
||||
// Set the first variable to the NUMBER of pixels in a row and
|
||||
// the second value to number of pixels in a column.
|
||||
Adafruit_WS2801 strip = Adafruit_WS2801((uint16_t)200, dataPin, clockPin);
|
||||
Adafruit_WS2801 strip = Adafruit_WS2801((uint16_t)10, (uint16_t)20,dataPin, clockPin);
|
||||
|
||||
|
||||
/* Helper functions */
|
||||
|
@ -140,8 +140,19 @@ void setup() {
|
|||
void loop() {
|
||||
// Some example procedures showing how to display to the pixels
|
||||
//drawX(10, 20, 100);
|
||||
//bounce(10, 20, 50);
|
||||
for(uint8_t i; i<200; i++)
|
||||
// bounce(10, 20, 50);
|
||||
|
||||
|
||||
for( int i = 0; i<200; i++)
|
||||
|
||||
{
|
||||
|
||||
strip.setPixelColor(i,250,0,0);
|
||||
|
||||
strip.show();
|
||||
}
|
||||
strip.show();
|
||||
/*for(uint8_t i; i<200; i++)
|
||||
{
|
||||
|
||||
strip.setPixelColor(i,255,0,0);
|
||||
|
@ -162,6 +173,6 @@ void loop() {
|
|||
strip.setPixelColor(i,0,0,255);
|
||||
}
|
||||
strip.show();
|
||||
delay(5000);
|
||||
delay(5000);*/
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue