Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-06-09 | ui: Default timer upon startup 3 minHEADmaster | Lars-Dominik Braun | 1 | -1/+4 | |
2015-06-09 | ui: Abort selection by horizon change | Lars-Dominik Braun | 1 | -8/+22 | |
2015-06-09 | pwm: Switch to fast mode before enabling speaker | Lars-Dominik Braun | 1 | -3/+3 | |
2015-06-09 | ui: Horizon change more important than timer | Lars-Dominik Braun | 1 | -11/+11 | |
We might miss a horizon change if the timer fires at the same time. | |||||
2015-06-09 | Stop alarm when shaking too | Lars-Dominik Braun | 1 | -2/+5 | |
2015-06-09 | Disable PWM in idle state | Lars-Dominik Braun | 1 | -5/+4 | |
Reduces power consumption | |||||
2015-06-09 | Replace array size calculation with macro | Lars-Dominik Braun | 3 | -10/+11 | |
2015-06-09 | Fix interrupt-based shake/horizon detection | Lars-Dominik Braun | 1 | -33/+35 | |
Fixes commit e2e3038c627ea7460915cdd535cb91301af614a7. | |||||
2015-03-04 | Makefile: Add avrdude-based device reset | Lars-Dominik Braun | 1 | -0/+4 | |
2015-02-27 | Add license | Lars-Dominik Braun | 19 | -0/+417 | |
2015-02-26 | accel: Stop polling | Lars-Dominik Braun | 4 | -154/+133 | |
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-26 | gyro: Async stop request | Lars-Dominik Braun | 1 | -17/+14 | |
Fixes assertion failure in gyroStop() | |||||
2015-02-10 | accel: Nonblocking | Lars-Dominik Braun | 3 | -50/+67 | |
2015-02-10 | ui: Fix LED test mode | Lars-Dominik Braun | 1 | -1/+2 | |
2015-02-10 | pwm: Use fast mode only for speaker beep | Lars-Dominik Braun | 1 | -2/+16 | |
2015-02-10 | Reduce CPU frequency | Lars-Dominik Braun | 6 | -45/+53 | |
Also reduces PWM frequency. The speakers resonance frequency is 2kHz, with 1MHz clock speed and prescaler 256 we get pretty close. | |||||
2015-01-29 | Replace enums with uint8_t | Lars-Dominik Braun | 6 | -46/+55 | |
Saves a few bytes, since enums are 16 bit | |||||
2015-01-29 | accel: Ignore shake if horizon changed | Lars-Dominik Braun | 1 | -2/+9 | |
2015-01-29 | accel: Fix shake detection, again | Lars-Dominik Braun | 1 | -8/+13 | |
Only two peaks are required. Use int16 to avoid overflow. Check sign before registering shake in other direction. | |||||
2015-01-20 | i2c: twRequests returns false if bus is busy | Lars-Dominik Braun | 2 | -21/+25 | |
2015-01-20 | ui: Increase wait time between confirm flashes | Lars-Dominik Braun | 1 | -2/+3 | |
2015-01-20 | Generic LED flash mode | Lars-Dominik Braun | 1 | -23/+84 | |
Adds support for confirming selections by flashing LEDs. | |||||
2015-01-20 | gyro: Fix non-blocking start | Lars-Dominik Braun | 1 | -23/+31 | |
The I2C bus may not be free when starting the gyro. Add two additional states. | |||||
2015-01-20 | timer: Fix one-shot mode | Lars-Dominik Braun | 1 | -3/+4 | |
2015-01-13 | Remove debugging puts/fwrite | Lars-Dominik Braun | 3 | -28/+3 | |
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-13 | Add generic flash ui state, fix timer race condition | Lars-Dominik Braun | 3 | -75/+119 | |
2014-12-15 | ui: Reduce required shake count to 1 | Lars-Dominik Braun | 1 | -3/+3 | |
Gesture detection has been fixed with commit 254fb0c490c62c0e29518cab2d8b5c90a30b378c, one shake now actually sets the counter to one. | |||||
2014-12-15 | pwm: Add method to switch all LEDs off | Lars-Dominik Braun | 3 | -32/+24 | |
This is used quite often and we can implement it more efficiently. | |||||
2014-12-15 | ui: Switch off LEDs when going into select_coarse | Lars-Dominik Braun | 1 | -1/+5 | |
We’re starting with a value of 0. | |||||
2014-12-15 | ui: Use flashing alarm | Lars-Dominik Braun | 1 | -11/+58 | |
2014-12-09 | gyro: non-blocking start/stop, enable only when required | Lars-Dominik Braun | 3 | -35/+67 | |
Save energy by disabling the gyro most of the time (i.e. not in selection mode). | |||||
2014-12-09 | accel: Fix shake gesture detection | Lars-Dominik Braun | 3 | -51/+53 | |
2014-11-25 | gyro/accel: Disable pull-ups | Lars-Dominik Braun | 2 | -10/+8 | |
Not sure they are needed. | |||||
2014-11-25 | gyro: Reduce sensitivity | Lars-Dominik Braun | 1 | -3/+3 | |
2014-11-11 | ui: Update leds when switching to fine selection | Lars-Dominik Braun | 1 | -26/+33 | |
2014-11-11 | ui: Fix debug messages | Lars-Dominik Braun | 1 | -7/+4 | |
2014-11-11 | ui: Simplify accel | Lars-Dominik Braun | 1 | -2/+1 | |
2014-11-11 | pwm: Respect PB0/1’s value set by gyro | Lars-Dominik Braun | 2 | -1/+9 | |
2014-11-11 | Fix i2c out of bounds write | Lars-Dominik Braun | 1 | -3/+3 | |
Fixes longstanding bug that caused strange behavior wrt LED’s states. | |||||
2014-09-30 | Unify entering idle state | Lars-Dominik Braun | 1 | -17/+19 | |
2014-09-30 | Fix theoretical LED step edge case | Lars-Dominik Braun | 1 | -1/+1 | |
2014-09-30 | Limit fine value range | Lars-Dominik Braun | 1 | -1/+7 | |
2014-09-30 | Fix timer return value | Lars-Dominik Braun | 1 | -1/+1 | |
2014-09-30 | Reliable reboot, idle status LED indicator | Lars-Dominik Braun | 4 | -14/+29 | |
2014-09-30 | LED error code for assert() | Lars-Dominik Braun | 2 | -4/+18 | |
2014-09-30 | Add wakeup source mechanism | Lars-Dominik Braun | 9 | -24/+67 | |
Should reduce amount of cpu wakeups with expensive computations. | |||||
2014-09-16 | timer: Support timeouts > 8s | Lars-Dominik Braun | 2 | -13/+64 | |
2014-09-16 | Auto stop alarm | Lars-Dominik Braun | 1 | -4/+10 | |
Currently triggers assert in timer.c | |||||
2014-09-16 | Finally fix speaker | Lars-Dominik Braun | 7 | -134/+62 | |
Use one timer for LED/speaker. Not sure why two did not work. | |||||
2014-08-26 | speaker: Fix beep | Lars-Dominik Braun | 1 | -9/+20 | |
Finally beeps. XXX: nope, it does not. |