Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NeoPixelLibrary does not work on ATTiny45 #108

Open
Maaajaaa opened this issue Nov 14, 2016 · 2 comments
Open

NeoPixelLibrary does not work on ATTiny45 #108

Maaajaaa opened this issue Nov 14, 2016 · 2 comments

Comments

@Maaajaaa
Copy link

I tried to run the simple example of Adafruit's NeoPixelLabrary on my ATTiny45 on every pin it doesn't work, no response at all (flashing via ArduinoISP worked well, blink example runs well and strip works with UNO and Pro). I also tried to use the light_ws2812, and use clock_prescale_set(clock_div_1); and capacitors/extra PSU and a pull-up-resitor for the data pin - still not working. Is there anything I can do about that?
I tried to run the simple example of Adafruit's NeoPixelLabrary on my ATTiny45 on every pin it doesn't work, no response at all (flashing via ArduinoISP worked well, blink example runs well and strip works with UNO and Pro). I also tried to use the light_ws2812, and use clock_prescale_set(clock_div_1); and capacitors/extra PSU and a pull-up-resitor for the data pin - still not working. Are there any suggestions about what could have gone wrong?

@robhsaunders
Copy link

I'm having the same issue with the ATTiny84. Just ran the Blink example and it runs fine.

@robhsaunders
Copy link

I figured it out. Using the StrandTest, once I uncommented the following lines it worked. I did install a 16Mhz clock and burned boatloader with that setting. Hope this helps.

//This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket
#if defined (AVR_ATtiny85)
if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
#endif
// End of trinket special code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants