aboutsummaryrefslogtreecommitdiff
path: root/tk-attiny.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-09-22Added FW3A driver support to FSM and Anduril.Selene ToyKeeper1-0/+37
Made lightning storm mode look a bit more like real lightning. Minor refactoring on how single-option config modes save state.
2017-09-03Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper1-8/+10
Moved go_to_suspend thing into main() instead of making each UI handle that during loop(). Made default_state() optional. Fixed bug where battcheck and other number readouts could interfere with the state which interrupted them. (they would sometimes turn the LED off after the new state had already started) Updated darkhorse's moon levels to match new ramp on D4 hardware.
2017-08-30Replaced FSM_*_LAYOUT with FSM_*_DRIVER because I think it makes more sense.Selene ToyKeeper1-11/+11
Made momentary.c compile again. Updated fsm-main to use whichever delay function is available.
2017-08-26Replaced bare config errors with the preprocessor's intended method of ↵Selene ToyKeeper1-2/+2
throwing config errors.
2017-08-19Added unfinished UI similar to Olight Baton series.Selene ToyKeeper1-9/+7
Fixed 2nd PWM channel init. May have fixed 3rd and 4th too. Added handling for complete normal clicks, but it's kind of flaky so far. Added handling for sustained button holds. Added missing 'arg' to state change functions.
2017-08-19Renamed from RoundTable to SpaghettiMonster (FSM).Selene ToyKeeper1-2/+2
2017-08-18First RoundTable example actually works (simple momentary 1-mode UI).Selene ToyKeeper1-2/+15
Changed how tk-attiny.h detects whether a layout was defined. Changed how tk-attiny.h detects number of PWM channels for new-style layouts. Added no-underscore versions of delay functions. Lots of RoundTable refactoring and blank-filling.
2017-08-18Some early ideas for Round Table. Nothing close to compile-able yet.Selene ToyKeeper1-1/+81
2017-05-01fixed tiny25 BOGOMIPS valueSelene ToyKeeper1-1/+1
(not sure why it was changed, but it was wrong)
2017-03-18Fixed LVP. Verified it works on FET+1 and attiny25. Added presets for ↵Selene ToyKeeper1-0/+12
MTN17DDm FET+1. Moved FAST/PHASE definitions to tk-attiny.h. These are really a per-layout option so it's better there.
2016-05-23Added bistro-tripledown.c.Selene ToyKeeper1-1/+34
It's a slight mod of bistro, to make it work on TripleDown drivers.
2015-10-10Made a simple program to blink out temperature measurements.Selene ToyKeeper1-0/+3
Added some basic temperature stuff to header files.
2015-10-05Added nanjg board/pin layout definition to tk-attiny.h.Selene ToyKeeper1-0/+13
(at least works for s7.c, haven't tried others yet)
2015-09-11Oops, delay_s() should delay for 1000 ms, not BOGOMIPS ms.Selene ToyKeeper1-2/+3
2015-09-11Refactored blf-a6 a bunch to export code to includes and make attiny ↵Selene ToyKeeper1-0/+90
portability a bit better. Moved MCU hardware options and pin layout to tk-attiny.h. Moved voltage and OTC hardcoded values to tk-calibration.h. Moved delay functions to tk-delay.h, and made it use BOGOMIPS instead of DELAY_TWEAK. Moved voltage ADC and most of the battcheck code to tk-voltage.h. Changed EEPLEN to EEPSIZE. Made 1.1V reference symbol consistent across MCUs to avoid repeated #if/#else clauses.