https://github.com/aidanbh/sineleds-avr
Pulse LEDs in a Sinewave using ATMega AVR!
https://github.com/aidanbh/sineleds-avr
arduino avr c pulse-leds sinewave
Last synced: 2 months ago
JSON representation
Pulse LEDs in a Sinewave using ATMega AVR!
- Host: GitHub
- URL: https://github.com/aidanbh/sineleds-avr
- Owner: aidanbh
- License: other
- Created: 2016-10-09T04:06:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-30T19:41:35.000Z (over 6 years ago)
- Last Synced: 2025-02-13T03:43:17.576Z (4 months ago)
- Topics: arduino, avr, c, pulse-leds, sinewave
- Language: Makefile
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SinLEDs_AVR
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).[](https://travis-ci.org/bithakr/SineLEDs-AVR)