I have this code running on my Gemma:
Code: Select all
#include <Adafruit_NeoPixel.h>
#define N_LEDS 6
#define PIN 1
Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_LEDS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
}
void loop() {
for(int i=0;i<6;i++)
{
strip.setPixelColor(i,0x00FF00); // Con
delay(100);
strip.show();
strip.setPixelColor(i,0x000000); // off
delay(100);
strip.show();
}
}
Board: Attiny85
Clock 8Mhz (internal)
Programmer USBtinyISP
I only get the first LED lit in green and nothing happens
Here is my setup. Its powered by 3x1.5V AAA (freshly unwrapped) I have no idea whats going on since I thought I had it workin some time ago.
Did I miss something?