neopixel won't work with an ATTiny

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
LXF
 
Posts: 20
Joined: Wed Jan 14, 2015 12:07 pm

neopixel won't work with an ATTiny

Post by LXF »

I am confused, since I think I had it working.
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();
  }
}
If I put it on a ATTiny85 PU over a Tiny Programmer with those settings:
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)
IMG_7973.JPG
IMG_7973.JPG (54.29 KiB) Viewed 245 times
I have no idea whats going on since I thought I had it workin some time ago.
Did I miss something?

User avatar
LXF
 
Posts: 20
Joined: Wed Jan 14, 2015 12:07 pm

Re: neopixel won't work with an ATTiny

Post by LXF »

I found the answer.
The chip was still on 1 MHZ
Burning the bootloader with 8 MHZ made it work.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”