/************************************************************************/ /* LED_spider.pde - Driver for the LED spider costume using the PICxel */ /* Library */ /* */ /* */ /* tested supported boards: */ /* - Digilent UC32 */ /* */ /************************************************************************/ #include // This tells how many LEDs to light up // If you added more LEDs you'll have to // change this. I cut my strips to 11. #define number_of_LEDs 11 // This tell what pin you are using on // the board. #define LED_pin 4 #define millisecond_delay 50 //PICxel constructor(uint8_t # of LEDs, uint8_t pin #, color_mode GRB or HSV); PICxel strip(number_of_LEDs, LED_pin, GRB); void setup(){ strip.begin(); // This line gives the brightness of the strip. // If you want it brighter increase the number, // if you want it dimmer decrease the number. strip.setBrightness(15); strip.clear(); } void loop(){ // Go through the for(int i=0; i