aboutsummaryrefslogtreecommitdiff
path: root/tk-attiny.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Made DELAY_ZERO_TIME a per-MCU option; hopefully will sync to PWM better ↵Selene ToyKeeper2017-10-211-0/+9
| | | | | | | | that way. Added BLF Q8 driver type, but it's basically identical to the D4 except in name. (can be used to auto-detect whether to use indicator LED, and what the diode drop constant should be)
* Added FW3A driver support to FSM and Anduril.Selene ToyKeeper2017-09-221-0/+37
| | | | | | Made lightning storm mode look a bit more like real lightning. Minor refactoring on how single-option config modes save state.
* Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper2017-09-031-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.
* Replaced FSM_*_LAYOUT with FSM_*_DRIVER because I think it makes more sense.Selene ToyKeeper2017-08-301-11/+11
| | | | | | Made momentary.c compile again. Updated fsm-main to use whichever delay function is available.
* Replaced bare config errors with the preprocessor's intended method of ↵Selene ToyKeeper2017-08-261-2/+2
| | | | throwing config errors.
* Added unfinished UI similar to Olight Baton series.Selene ToyKeeper2017-08-191-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.
* Renamed from RoundTable to SpaghettiMonster (FSM).Selene ToyKeeper2017-08-191-2/+2
|
* First RoundTable example actually works (simple momentary 1-mode UI).Selene ToyKeeper2017-08-181-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.
* Some early ideas for Round Table. Nothing close to compile-able yet.Selene ToyKeeper2017-08-181-1/+81
|
* Merged the crescendo (ramping-clicky UI) branch.Selene ToyKeeper2017-06-181-1/+13
|\ | | | | | | Applied tk-delay.h changes everywhere I could find a need for it.
| * merged trunkSelene ToyKeeper2017-06-181-1/+1
| |\ | |/ |/|
* | fixed tiny25 BOGOMIPS valueSelene ToyKeeper2017-05-011-1/+1
| | | | | | | | | | (not sure why it was changed, but it was wrong)
| * Fixed LVP. Verified it works on FET+1 and attiny25. Added presets for ↵Selene ToyKeeper2017-03-181-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.
* Added bistro-tripledown.c.Selene ToyKeeper2016-05-231-1/+34
| | | | It's a slight mod of bistro, to make it work on TripleDown drivers.
* Made a simple program to blink out temperature measurements.Selene ToyKeeper2015-10-101-0/+3
| | | | Added some basic temperature stuff to header files.
* Added nanjg board/pin layout definition to tk-attiny.h.Selene ToyKeeper2015-10-051-0/+13
| | | | (at least works for s7.c, haven't tried others yet)
* Oops, delay_s() should delay for 1000 ms, not BOGOMIPS ms.Selene ToyKeeper2015-09-111-2/+3
|
* Refactored blf-a6 a bunch to export code to includes and make attiny ↵Selene ToyKeeper2015-09-111-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.