Pulse LEDs in a Sinewave using ATMega AVR! This code uses Timer0 to generate a PWM "sine wave" on PD5 and PD6, using OC0A and OC0B in non-inverting and inverting mode respectively, with the OCRs being updated every 300 milliseconds with the next value in a uint8_t array lookup table for the sine wave. Don't forget to update the #defines at the beginning (and update the Makefile) with your chip (default: ATMega328/P) and clock (default: 1MHz).
-
Notifications
You must be signed in to change notification settings - Fork 0
Pulse LEDs in a Sinewave using ATMega AVR!
License
aidanbh/SineLEDs-AVR
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Pulse LEDs in a Sinewave using ATMega AVR!
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published