dhiltonp / hexbright

The easiest way to start programming your hexbright.
BSD 2-Clause "Simplified" License
124 stars 114 forks source link

add stroboscope #9

Closed dhiltonp closed 11 years ago

dhiltonp commented 11 years ago

investigate pwm settings

itdaniher commented 11 years ago

analogWrite, commonly used for pwm, doesn't let you modify the frequency from the ~490Hz default.

to implement hardware blinking / strobing, might be worth looking at direct use of the atmega's timer/counter peripherals, as per http://www.mythic-beasts.com/~markt/ATmega-timers.html

dhiltonp commented 11 years ago

I've figured out the stroboscope stuff at this point, as well as a partial integration with the library. It requires manual strobing, not PWM. That said, it looks like we will want to look into adjusting the TCCR1B value (PWM timer for the main LED).

dhiltonp commented 11 years ago

Stroboscope code works, but the stroboscope program's spin interface is rather clunky.