8-Bit Sine Wave Table
This was what I needed for a rainbow RGB LED cycle…
Posted: May 10th, 2011 | Author: jay | Filed under: Code | Tags: attiny, attiny85, avr, led, rainbow, rgb, sin, sine, sine wave | No Comments »This was what I needed for a rainbow RGB LED cycle…
Posted: May 10th, 2011 | Author: jay | Filed under: Code | Tags: attiny, attiny85, avr, led, rainbow, rgb, sin, sine, sine wave | No Comments »Based on Atmel’s AVR136: Low-Jitter Multi-Channel Software PWM Application note, here’s a 3 channel software-based pulse width modulator to drive a RGB LED. This is a proof of concept and currently there is some in-efficient color cycling code in there, but the goal is to drive these cheap chips using an I2C (two wire serial) bus. Disco dance floor anyone?…
Posted: May 4th, 2011 | Author: jay | Filed under: Code, Electronics | Tags: atmel, attiny, attiny85, c, i2c, led, pulse width, pwm, rgb | No Comments »