This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define NUM_ROWS 8 | |
| #define NUM_LEDS_PER_ROW 100 | |
| // Param for different pixel layouts | |
| const bool kMatrixSerpentineLayout = true; | |
| void Fire2012() | |
| { | |
| // Array of temperature readings at each simulation cell | |
| static uint8_t heat[NUM_ROWS-1][NUM_LEDS_PER_ROW]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "LPD8806.h" | |
| #include "SPI.h" | |
| /*****************************************************************************/ | |
| // Full 5m LPD8806 STRIP | |
| /*****************************************************************************/ | |
| #define holdTime 3000 //used to time button hold for special function | |
| #define buttonPin 23 //Default button pin, Pin 21 and 22 used for SPI | |
| const int usb_usb_disable = 0; // disabled usb is enable to save power | |
| int mode = 0; // default mode is off (0) | |
| int nummodes = 12; // number of total modes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "LPD8806.h" | |
| #include "SPI.h" | |
| // Example to control LPD8806-based RGB LED Modules in a strip! | |
| /*****************************************************************************/ | |
| int NUM_LEDS =32; | |
| int BOTTOM_INDEX = 0; | |
| int TOP_INDEX = int(NUM_LEDS/2); | |
| int EVENODD = NUM_LEDS%2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "LPD8806.h" | |
| #include "SPI.h" | |
| /*****************************************************************************/ | |
| // Full 5m LPD8806 STRIP BP Table | |
| /*****************************************************************************/ | |
| #define holdTime 16000 //used to time button hold for special function | |
| #define buttonPin 7 //USED TO CHANGE TABLE EFFECT has false hit issues | |
| #define Player1 9 // button for player 1 | |
| #define Player2 8 // button for player 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "LPD8806.h" | |
| #include "SPI.h" | |
| /*****************************************************************************/ | |
| // Full 5m LPD8806 STRIP | |
| /*****************************************************************************/ | |
| #define holdTime 3000 //used to time button hold for special function | |
| #define buttonPin 23 //Default button pin | |
| //Pin 21 and 22 used for SPI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "LPD8806.h" | |
| #include "SPI.h" | |
| // Full 5m Blue Bomber | |
| /*****************************************************************************/ | |
| // Number of RGB LEDs in strand: | |
| int nLEDs = 160; | |
| // Set the first variable to the NUMBER of pixels. 32 = 32 pixels in a row |