aboutsummaryrefslogtreecommitdiff
path: root/ui.c
AgeCommit message (Collapse)AuthorFilesLines
2015-06-09ui: Default timer upon startup 3 minHEADmasterLars-Dominik Braun1-1/+4
2015-06-09ui: Abort selection by horizon changeLars-Dominik Braun1-8/+22
2015-06-09ui: Horizon change more important than timerLars-Dominik Braun1-11/+11
We might miss a horizon change if the timer fires at the same time.
2015-06-09Stop alarm when shaking tooLars-Dominik Braun1-2/+5
2015-06-09Disable PWM in idle stateLars-Dominik Braun1-5/+4
Reduces power consumption
2015-02-27Add licenseLars-Dominik Braun1-0/+23
2015-02-26accel: Stop pollingLars-Dominik Braun1-15/+3
Use freefall interrupts instead. This drop the fancy horizon/shake detection algorithms, but it works surprisingly well and is way more energy-efficient. Shake detection is a little too sensitive imo and horizon detection needs some tweaking too.
2015-02-10ui: Fix LED test modeLars-Dominik Braun1-1/+2
2015-01-29Replace enums with uint8_tLars-Dominik Braun1-24/+24
Saves a few bytes, since enums are 16 bit
2015-01-20ui: Increase wait time between confirm flashesLars-Dominik Braun1-2/+3
2015-01-20Generic LED flash modeLars-Dominik Braun1-23/+84
Adds support for confirming selections by flashing LEDs.
2015-01-13Remove debugging puts/fwriteLars-Dominik Braun1-22/+0
We’re tight on SRAM and the stack seems overflow from time to time. Removing the strings should give us some breathing room.
2015-01-13Add generic flash ui state, fix timer race conditionLars-Dominik Braun1-59/+95
2014-12-15ui: Reduce required shake count to 1Lars-Dominik Braun1-3/+3
Gesture detection has been fixed with commit 254fb0c490c62c0e29518cab2d8b5c90a30b378c, one shake now actually sets the counter to one.
2014-12-15pwm: Add method to switch all LEDs offLars-Dominik Braun1-23/+9
This is used quite often and we can implement it more efficiently.
2014-12-15ui: Switch off LEDs when going into select_coarseLars-Dominik Braun1-1/+5
We’re starting with a value of 0.
2014-12-15ui: Use flashing alarmLars-Dominik Braun1-11/+58
2014-12-09gyro: non-blocking start/stop, enable only when requiredLars-Dominik Braun1-1/+2
Save energy by disabling the gyro most of the time (i.e. not in selection mode).
2014-11-11ui: Update leds when switching to fine selectionLars-Dominik Braun1-26/+33
2014-11-11ui: Fix debug messagesLars-Dominik Braun1-7/+4
2014-11-11ui: Simplify accelLars-Dominik Braun1-2/+1
2014-09-30Unify entering idle stateLars-Dominik Braun1-17/+19
2014-09-30Fix theoretical LED step edge caseLars-Dominik Braun1-1/+1
2014-09-30Limit fine value rangeLars-Dominik Braun1-1/+7
2014-09-30Reliable reboot, idle status LED indicatorLars-Dominik Braun1-0/+25
2014-09-30Add wakeup source mechanismLars-Dominik Braun1-10/+3
Should reduce amount of cpu wakeups with expensive computations.
2014-09-16timer: Support timeouts > 8sLars-Dominik Braun1-0/+29
2014-09-16Auto stop alarmLars-Dominik Braun1-4/+10
Currently triggers assert in timer.c
2014-09-16Finally fix speakerLars-Dominik Braun1-18/+0
Use one timer for LED/speaker. Not sure why two did not work.
2014-08-19Switch to new timer, fix usabilityLars-Dominik Braun1-62/+102
Seems to work so far, gyro is a little too sensitive.
2014-07-22Convert printf into putsLars-Dominik Braun1-11/+10
Removes ~1.5k code size, still not working.
2014-07-22Speaker and LED pwmLars-Dominik Braun1-12/+39
Something is not correct here, stack overflow?
2014-07-08Coarse/fine selection modesLars-Dominik Braun1-69/+88
2014-06-17Alarm state + defines + documentationLars-Dominik Braun1-21/+61
2014-06-17Translate LED id’s based on orientationLars-Dominik Braun1-8/+19
And fix orientation change detection.
2014-06-17ui: AddedLars-Dominik Braun1-0/+232
Seems to work mostly now.