path: root/i2c.c
AgeCommit message (Collapse)AuthorFilesLines
2015-02-27Add licenseLars-Dominik Braun1-0/+23
2015-02-10Reduce CPU frequencyLars-Dominik Braun1-7/+12
Also reduces PWM frequency. The speakers resonance frequency is 2kHz, with 1MHz clock speed and prescaler 256 we get pretty close.
2015-01-20i2c: twRequests returns false if bus is busyLars-Dominik Braun1-2/+6
2015-01-13Remove debugging puts/fwriteLars-Dominik Braun1-1/+0
We’re tight on SRAM and the stack seems overflow from time to time. Removing the strings should give us some breathing room.
2014-11-11Fix i2c out of bounds writeLars-Dominik Braun1-3/+3
Fixes longstanding bug that caused strange behavior wrt LED’s states.
2014-09-30Add wakeup source mechanismLars-Dominik Braun1-0/+3
Should reduce amount of cpu wakeups with expensive computations.
2014-07-29i2c: Make sure status is _OKLars-Dominik Braun1-2/+2
Not sure if this fixes anything.
2014-07-22Use “volatile” on struct membersLars-Dominik Braun1-1/+1
Not all struct members are written in an ISR.
2014-07-22Convert printf into putsLars-Dominik Braun1-5/+4
Removes ~1.5k code size, still not working.
2014-05-27Fix compiler warningsLars-Dominik Braun1-0/+3
2014-04-22Fix interrupt stuffLars-Dominik Braun1-4/+3
Sorta polling based now, with interrupts used to wake up from sleep only. At least it works.
2014-04-22Increase CPU and UART speedLars-Dominik Braun1-1/+14
Re-enable interrupt based accel.
2014-04-22Activate accel + timerLars-Dominik Braun1-8/+16
2014-03-05i2c: Add missing breakLars-Dominik Braun1-1/+2
2014-03-05i2c: Add multi writeLars-Dominik Braun1-34/+18
2014-02-13Split up main.cLars-Dominik Braun1-0/+252