path: root/pwm.c
AgeCommit message (Collapse)AuthorFilesLines
2015-06-09pwm: Switch to fast mode before enabling speakerLars-Dominik Braun1-3/+3
2015-02-27Add licenseLars-Dominik Braun1-0/+23
2015-02-10pwm: Use fast mode only for speaker beepLars-Dominik Braun1-2/+16
2015-02-10Reduce CPU frequencyLars-Dominik Braun1-2/+2
Also reduces PWM frequency. The speakers resonance frequency is 2kHz, with 1MHz clock speed and prescaler 256 we get pretty close.
2014-12-15pwm: Add method to switch all LEDs offLars-Dominik Braun1-9/+14
This is used quite often and we can implement it more efficiently.
2014-11-11pwm: Respect PB0/1’s value set by gyroLars-Dominik Braun1-1/+8
2014-09-30Add wakeup source mechanismLars-Dominik Braun1-2/+3
Should reduce amount of cpu wakeups with expensive computations.
2014-09-16Finally fix speakerLars-Dominik Braun1-41/+50
Use one timer for LED/speaker. Not sure why two did not work.
2014-08-05pwm: Add brightness controlLars-Dominik Braun1-50/+50
2014-07-22Convert printf into putsLars-Dominik Braun1-1/+0
Removes ~1.5k code size, still not working.
2014-07-22Speaker and LED pwmLars-Dominik Braun1-4/+11
Something is not correct here, stack overflow?
2014-07-08Coarse/fine selection modesLars-Dominik Braun1-2/+2
2014-06-17Alarm state + defines + documentationLars-Dominik Braun1-2/+0
2014-06-10pwm: Implement blinkLars-Dominik Braun1-41/+69
Still flickers a little bit, might have to increase frequency…
2014-05-27pwm: Initial LED PWMLars-Dominik Braun1-0/+81