~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/cfg-mateminco-mf01s.h

  • Committer: Selene Scriven
  • Date: 2015-03-17 08:56:50 UTC
  • mto: This revision was merged to the branch mainline in revision 124.
  • Revision ID: ubuntu@toykeeper.net-20150317085650-s89wr9h28n2co7z1
Added TheStar firmwares from _the_

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Mateminco/Astrolux MF01S options for Anduril
2
 
#include "hwdef-Mateminco_MF01S.h"
3
 
 
4
 
// the button lights up
5
 
#define USE_INDICATOR_LED
6
 
// the button is visible while main LEDs are on
7
 
//#define USE_INDICATOR_LED_WHILE_RAMPING
8
 
// enable blinking indicator LED while off
9
 
#define TICK_DURING_STANDBY
10
 
#define STANDBY_TICK_SPEED 3  // every 0.128 s
11
 
#define USE_FANCIER_BLINKING_INDICATOR
12
 
// off mode: low (1)
13
 
// lockout: blinking (3)
14
 
#define INDICATOR_LED_DEFAULT_MODE ((3<<2) + 1)
15
 
 
16
 
 
17
 
// don't blink during ramp, it's irrelevant and annoying on this light
18
 
#define BLINK_AT_RAMP_CEILING
19
 
#undef BLINK_AT_RAMP_MIDDLE
20
 
#undef BLINK_AT_RAMP_FLOOR
21
 
 
22
 
// measured brightness with 4x30Q cells at 4.11V:
23
 
// moon: 2.5 lm
24
 
// channel 1: 617 lm
25
 
// channel 2: 13500 lm
26
 
// ../../../bin/level_calc.py seventh 2 150 7135 1 12 717 FET 1 10 13000
27
 
// (with some manual tweaks afterward)
28
 
#define RAMP_LENGTH 150
29
 
#define PWM1_LEVELS 1,1,2,2,3,3,4,4,5,5,6,7,7,8,9,10,11,12,13,14,15,17,18,19,21,22,24,26,28,30,32,34,36,38,41,44,46,49,52,55,59,62,66,70,74,78,83,87,92,97,102,108,114,120,126,133,139,147,154,162,170,178,187,196,206,215,226,236,248,255,235,255,240,255,245,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0
30
 
#define PWM2_LEVELS 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,3,3,4,4,5,6,7,8,9,10,11,12,13,14,16,17,19,20,22,23,25,26,28,30,31,33,35,37,39,41,43,45,47,49,52,54,57,59,62,65,67,70,73,76,80,83,86,90,93,97,101,105,109,113,117,122,126,131,135,140,145,151,156,161,167,173,179,185,191,197,204,211,218,225,232,239,247,255
31
 
#define MAX_1x7135 70  // ~626 lm
32
 
#define HALFSPEED_LEVEL 23
33
 
#define QUARTERSPEED_LEVEL 6
34
 
 
35
 
#define RAMP_SMOOTH_FLOOR 1   // ~2.5 lm
36
 
#define RAMP_SMOOTH_CEIL 120  // ~5400 lm
37
 
// 20, 36, 53, [70], 86, 103, 120
38
 
#define RAMP_DISCRETE_FLOOR 20 // 35 lm
39
 
#define RAMP_DISCRETE_CEIL 120 // ~5400 lm
40
 
#define RAMP_DISCRETE_STEPS 7  // 35, 108, 280, 626, 1500, 2930, 5400 lm
41
 
 
42
 
#define USE_TENCLICK_THERMAL_CONFIG  // by request
43
 
#define THERM_FASTER_LEVEL 125  // throttle back faster when high (>6000 lm)
44
 
#define THERM_HARD_TURBO_DROP  // this light is massively overpowered
45