Closed bokolob closed 3 years ago
Oh, yes. I use a single led.
At 8MHz the timing of the library is somewhat marginal. Have you tried a higher clock frequency?
All pins are used, so I have no space for Crystal ;) As far as I understand 8 MHz is highest speed for an internal oscillator.
But I can’t say that it doesn’t work at all, It just has some glitches. I think it depends on amount of sending 1 bits.
So I tried arduino uno, which has 16 MHz clock. And it worked well.
You can set ATtiny85 to 16MHz with internal oscillator using the PLL.
I use your library with AtTiny85 (8Mhz internal oscillator). Simple loop
GREEN - is a predefined array with RGB values. Only green is non-zero here. So, I've got very strange artifacts here, sometimes led blinks red, and white. It has to start from black and slowly go green. But it starts at green instead. It's 100% reproducible and probably goes wrong at the same GREEN rows.
At the same time, it works perfectly on the Arduino Uno board.
I think that something is wrong with timings. But I have no idea how to investigate 8(