~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

Viewing changes to ToyKeeper/blf-a6/cypreus2/cypreus2.txt

  • Committer: Selene Scriven
  • Date: 2015-09-11 01:11:43 UTC
  • Revision ID: ubuntu@toykeeper.net-20150911011143-0qk3qa06vqscgoin
updated meta files to reflect attiny25 support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Firmware for a Sinner Cypreus Tri-EDC with a FET+1 driver with 
 
2
triple XP-L emitters and a capacitor to enable off-time memory.
 
3
 
 
4
Interface:
 
5
 
 
6
  See the state change diagram for details, but here is a quick 
 
7
  overview:
 
8
 
 
9
  - A short press (0.5s or less) moves the mode forward by one.
 
10
  - A medium press (~0.5s to 1.5s) moves the mode backward by one.
 
11
  - A long press (more than 1.5s) resets to the first mode.  So, after 
 
12
    being off for a while it always starts at the first mode.
 
13
  - Going "backward" from the first mode will take you to hidden 
 
14
    modes.
 
15
  - A short press from any hidden mode has various effects.
 
16
 
 
17
Solid modes:
 
18
 
 
19
   1. Moon.
 
20
   2. Low.
 
21
   3. Medium.
 
22
   4. High.
 
23
   5. Turbo. (will step down after ~15s)
 
24
   6. Max Turbo. (will step down after ~15s)
 
25
 
 
26
Primary / intermediate hidden modes:
 
27
 
 
28
   -1. Max Turbo.
 
29
       Short press -> Moon.
 
30
   -2. Bike flasher (bright).
 
31
       Short press -> Dim bike flasher.
 
32
   -3. 24 Hz strobe.
 
33
       Short press -> 12 Hz strobe.
 
34
   -4. Battcheck mode.
 
35
       Short press -> Heartbeat beacon.
 
36
 
 
37
Full / secondary hidden modes:
 
38
 
 
39
   7. Dim bike flasher.
 
40
   8. Medium bike flasher.
 
41
   9. Bright bike flasher.
 
42
  10. Battery check mode.  Measures, blinks 0 to 5 times, waits, repeats:
 
43
      - 0 blinks: < 3.0V
 
44
      - 1 blink : 3.0-3.5V
 
45
      - 2 blinks: 3.5-3.8V
 
46
      - 3 blinks: 3.8-4.0V
 
47
      - 4 blinks: 4.0-4.2V
 
48
      - 5 blinks: > 4.2V
 
49
  11. 1Hz Heartbeat beacon.  Blinks twice, waits, repeats.
 
50
  12. 12Hz motion-freezing strobe.  (not tactical, more like a party strobe)
 
51
  13. 24Hz motion-freezing strobe.
 
52
  14. 60Hz motion-freezing strobe.
 
53
  15. Self-ramping 7Hz to 18Hz motion-freezing strobe.  Point it 
 
54
      at a ceiling fan or something, it looks neat.
 
55
  12. Self-ramping 16Hz to 100Hz motion-freezing strobe.
 
56
 
 
57
Mode changes:
 
58
 
 
59
  See the state change diagram for a visual summary.
 
60
 
 
61
  There are basically three mode groups: Normal, primary hidden, and 
 
62
  full hidden.  Normal modes loop both directions except that a 
 
63
  medium press from moon enters the primary hidden group.  The 
 
64
  primary hidden group is reversed and loops back to moon at the 
 
65
  end, with each forward action going to various other places.  The 
 
66
  full hidden group loops on both ends and can only be exited by 
 
67
  doing a long press.
 
68
 
 
69
When the battery voltage gets low, the light will step down and 
 
70
eventually turn off.  If on a blinky mode, it'll "step down" to the 
 
71
"Med" mode first, then low, then off.  If on a regular/solid mode, 
 
72
it will step down one level each time until it's at "moon", then 
 
73
turn off.
 
74