aboutsummaryrefslogtreecommitdiff
path: root/docs/which-hex-file.md
blob: d59c6bdc050d9974f21d6e1a94641918f28e38fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# How to figure out which .hex file to use

1. Use the version check function (15 or more clicks from Off) to find out
   which flavor of the firmware the light has installed.  
   **WRITE THIS DOWN.**

2. Look up the model number in the [MODELS file](../MODELS),
   to get the name and MCU type.

3. Find the newest firmware for that model.  
   https://github.com/ToyKeeper/anduril/releases  
   https://toykeeper.net/torches/fsm/anduril2/?C=M;O=D

If the version doesn't include a model number, you may be able to find
the model in the PRODUCTS file to see which version it probably uses:

  https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/anduril2/view/head:/PRODUCTS


## Version Check Formats

The Version Check function should blink out a series of numbers in one of
several formats:

 - `NNNN-YYYY-MM-DD`
   Anduril 2 from 2023-05 or later.  
   It's a model number and build date,
   with "buzz" flashes between sections.
   - `NNNN`: model number
   - `YYYY`: year
   - `MM`: month
   - `DD`: day

 - `YYYYMMDDNNNN`
   Anduril 2 from 2023-05 or earlier.  
   It's a build date and model number.

- `YYYYMMDD`
   This is an old Anduril 1 version.  It's just a build date.  
   If the model name isn't obvious, try looking it up in the PRODUCTS file.