attiny85 + adxl335

Hi

I've been trying to use control my ws2812 LED by adxl335 on attiny85, it works great on UNO, but not on 335, I do got some reaction but the reading seems wrong, any idea? also i can't find any article relate to it, maybe it's a stupid idea to do so......? thanks.

Luke

_335_crossfade_ATTINY85.ino (2.16 KB)

What CPU clock rate is your attiny85 set to? Which tiny core are you using?

Hi Hiduino

it's 8Mhz, core? i think it's 20SU, thanks.

I recommend this core:

http://code.google.com/p/arduino-tiny/

Hi Tylernt

What is the function for this code? thank you.

dontmarryme:
Hi Tylernt

What is the function for this code? thank you.

The Arduino IDE does not directly support ATTiny microcontrollers. There are two Cores that I am aware of to add this functionality, the HLT Core and the Google Code Core. Code written for one Core may or may not work on the other Core. So if you are having problems, you can try using the other Core to see if the problems are resolved.

so i just copy it and paste it under "hardware" folder?

Installation instructions here:

http://code.google.com/p/arduino-tiny/source/browse/README

thank you sir, i will give it a try.