~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/cfg-noctigon-dm11-sbt90.h

  • Committer: Selene ToyKeeper
  • Date: 2023-11-04 15:09:10 UTC
  • mfrom: (483.1.175 anduril2)
  • Revision ID: bzr@toykeeper.net-20231104150910-ddd3afw4nhfvof2l
merged anduril2 branch -> fsm, with *years* of changes
(this also means this code is now Anduril 2 instead of Anduril 1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Noctigon DM11-SBT90.2 config options for Anduril
 
2
// Copyright (C) 2021-2023 Selene ToyKeeper
 
3
// SPDX-License-Identifier: GPL-3.0-or-later
 
4
#pragma once
 
5
 
 
6
#include "cfg-noctigon-kr4.h"
 
7
#undef MODEL_NUMBER
 
8
#define MODEL_NUMBER "0274"
 
9
// ATTINY: 1634
 
10
 
 
11
// this light has three aux LED channels: R, G, B
 
12
#define USE_AUX_RGB_LEDS
 
13
// ... and a single LED in the button
 
14
#define USE_BUTTON_LED
 
15
// don't use aux LEDs while main LED is on
 
16
#ifdef USE_INDICATOR_LED_WHILE_RAMPING
 
17
#undef USE_INDICATOR_LED_WHILE_RAMPING
 
18
#endif
 
19
 
 
20
// power channels:
 
21
// - linear: 5A?
 
22
// - FET: DD
 
23
 
 
24
#undef DEFAULT_LEVEL
 
25
#define DEFAULT_LEVEL 70
 
26
 
 
27
#undef RAMP_SMOOTH_FLOOR
 
28
#define RAMP_SMOOTH_FLOOR 10  // low levels may be unreliable
 
29
// 10, 30, 50, [70], 90, 110, 130
 
30
#undef RAMP_DISCRETE_FLOOR
 
31
#define RAMP_DISCRETE_FLOOR 10
 
32
 
 
33
// safe limit ~75% power
 
34
#undef SIMPLE_UI_CEIL
 
35
#define SIMPLE_UI_CEIL RAMP_DISCRETE_CEIL
 
36
 
 
37
// stop panicking at ~70% power or ~600 lm
 
38
#undef THERM_FASTER_LEVEL
 
39
#define THERM_FASTER_LEVEL 130
 
40
 
 
41
#undef BLINK_BRIGHTNESS
 
42
#define BLINK_BRIGHTNESS 50
 
43
 
 
44
#undef CANDLE_AMPLITUDE
 
45
#define CANDLE_AMPLITUDE 30
 
46