Skip to content

Commit

Permalink
Add personal configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Isilmerie committed Oct 15, 2024
1 parent c0ddd0d commit 3ba75a3
Show file tree
Hide file tree
Showing 8 changed files with 591 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ venv/
*.o
*.old
*.otl
users.cfg

2 changes: 2 additions & 0 deletions users.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
isilmerie

76 changes: 76 additions & 0 deletions users/isilmerie/anduril.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// ----- SIMPLE/ADVANCED UI -----


// use Advanced UI by default
#undef SIMPLE_UI_ACTIVE
#define SIMPLE_UI_ACTIVE 0

// allow switching ramp styles in Simple UI
#undef USE_SIMPLE_UI_RAMPING_TOGGLE
#define USE_SIMPLE_UI_RAMPING_TOGGLE





// ----- AUXILIARY LEDS -----

// enable quick aux switch (from PR #5)
#undef USE_QUICK_AUX_SWITCH
#define USE_QUICK_AUX_SWITCH





// ----- RAMP SETTINGS -----

// use smooth ramping style
#undef RAMP_STYLE
#define RAMP_STYLE 0 // 0 = smooth, 1 = stepped

// 10 minute manual memory timer
#undef DEFAULT_MANUAL_MEMORY_TIMER
#define DEFAULT_MANUAL_MEMORY_TIMER 10

// stay at floor when ramping up from off
#undef DEFAULT_DONT_RAMP_AFTER_MOON
#define DEFAULT_DONT_RAMP_AFTER_MOON 1

// disable turbo in Simple UI
#undef DEFAULT_2C_STYLE_SIMPLE
#define DEFAULT_2C_STYLE_SIMPLE 0

// use smooth steps
#undef DEFAULT_SMOOTH_STEPS_STYLE
#define DEFAULT_SMOOTH_STEPS_STYLE 1






// ----- BLINKY/UTILITY MODES -----

// nothing yet




// ----- STROBE/MOOD MODES -----


// nothing yet





// ----- MISC -----


// autolock: 10 mins
#undef USE_AUTOLOCK
#define USE_AUTOLOCK
#undef DEFAULT_AUTOLOCK_TIME
#define DEFAULT_AUTOLOCK_TIME 10
123 changes: 123 additions & 0 deletions users/isilmerie/models/hank-emisar-d4k-3ch/anduril.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
// ----- AUXILIARY LEDS -----


// turn off aux LEDs on ramping mode
#undef USE_AUX_RGB_LEDS_WHILE_ON
#undef USE_INDICATOR_LED_WHILE_RAMPING

// aux LEDs on off: voltage (9) high (2)
#undef RGB_LED_OFF_DEFAULT
#define RGB_LED_OFF_DEFAULT 0x29

// aux LEDs on lockout: voltage (9) low (1)
#undef RGB_LED_LOCKOUT_DEFAULT
#define RGB_LED_LOCKOUT_DEFAULT 0x19

// turn off post-off voltage reading
#undef DEFAULT_POST_OFF_VOLTAGE_SECONDS
#define DEFAULT_POST_OFF_VOLTAGE_SECONDS 0





// ----- RAMP LEVELS -----


// Smooth Ramp settings
#undef RAMP_SMOOTH_FLOOR
#define RAMP_SMOOTH_FLOOR 1
#undef RAMP_SMOOTH_CEIL
#define RAMP_SMOOTH_CEIL 150
#undef DEFAULT_RAMP_SPEED
#define DEFAULT_RAMP_SPEED 1 // ramp speed: default, brightness range is too narrow to be slower

// Stepped Ramp settings
#undef RAMP_DISCRETE_FLOOR
#define RAMP_DISCRETE_FLOOR RAMP_SMOOTH_FLOOR
#undef RAMP_DISCRETE_CEIL
#define RAMP_DISCRETE_CEIL RAMP_SMOOTH_CEIL
#undef RAMP_DISCRETE_STEPS
#define RAMP_DISCRETE_STEPS 9 // 9 steps

// Simple UI Ramp Stepped Ramp settings
#undef SIMPLE_UI_FLOOR
#define SIMPLE_UI_FLOOR RAMP_SMOOTH_FLOOR
#undef SIMPLE_UI_CEIL
#define SIMPLE_UI_CEIL RAMP_SMOOTH_CEIL // not too bright
#undef SIMPLE_UI_STEPS
#define SIMPLE_UI_STEPS 5 // 5 steps





// ----- RAMP SETTINGS -----


// don't use manual memory
#undef DEFAULT_MANUAL_MEMORY_TIMER
#define DEFAULT_MANUAL_MEMORY_TIMER 0

// use turbo style 1 (2C goes to turbo) because ceiling and turbo are equal
#undef DEFAULT_2C_STYLE
#define DEFAULT_2C_STYLE 1





// ----- CHANNEL SETTINGS -----


// use white channel by default
#undef DEFAULT_CHANNEL_MODE
#define DEFAULT_CHANNEL_MODE CM_ALL

// enable R, G, B, RGB, GB, RG, RB, HSV channels (0-7)
// don't enable autotint (8) and aux (9-15) channels
#undef CHANNEL_MODES_ENABLED
#define CHANNEL_MODES_ENABLED 0b0000000011111111

// use blue channel to warn factory reset
// use white channel to signal factory reset
#undef FACTORY_RESET_WARN_CHANNEL
#define FACTORY_RESET_WARN_CHANNEL CM_LED4
#undef FACTORY_RESET_SUCCESS_CHANNEL
#define FACTORY_RESET_SUCCESS_CHANNEL CM_ALL

// use red channel to wait for a click in a config menu
// use green channel to signal an inputted click
#undef CONFIG_WAITING_CHANNEL
#define CONFIG_WAITING_CHANNEL CM_MAIN2
#undef CONFIG_BLINK_CHANNEL
#define CONFIG_BLINK_CHANNEL CM_LED3





// ----- BLINKY/UTILITY MODES -----


// use white aux channel by default for blinkies
#undef DEFAULT_BLINK_CHANNEL
#define DEFAULT_BLINK_CHANNEL CM_AUXWHT

// use red and blue channels for police strobe
#undef POLICE_COLOR_STROBE_CH1
#define POLICE_COLOR_STROBE_CH1 CM_MAIN2
#undef POLICE_COLOR_STROBE_CH2
#define POLICE_COLOR_STROBE_CH2 CM_LED4





// ----- MISC -----


// in ramp mode, 4C goes back to the previous channel instead of going to lockout mode
// from PR #50
#undef USE_PREVIOUS_CHANNEL
#define USE_PREVIOUS_CHANNEL
86 changes: 86 additions & 0 deletions users/isilmerie/models/hank-noctigon-dm11-nofet/anduril.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
// ----- AUXILIARY LEDS -----


// aux LEDs on off: voltage (9) high (2)
#undef RGB_LED_OFF_DEFAULT
#define RGB_LED_OFF_DEFAULT 0x29

// aux LEDs on lockout: voltage (9) low (1)
#undef RGB_LED_LOCKOUT_DEFAULT
#define RGB_LED_LOCKOUT_DEFAULT 0x19

// turn off post-off voltage reading
#undef DEFAULT_POST_OFF_VOLTAGE_SECONDS
#define DEFAULT_POST_OFF_VOLTAGE_SECONDS 0





// ----- RAMP LEVELS -----


// Smooth Ramp settings
#undef RAMP_SMOOTH_FLOOR
#define RAMP_SMOOTH_FLOOR 1
#undef RAMP_SMOOTH_CEIL
#define RAMP_SMOOTH_CEIL 150 // fully regulated through ramp
#undef DEFAULT_RAMP_SPEED
#define DEFAULT_RAMP_SPEED 2 // ramp speed: half

// Stepped Ramp settings
#undef RAMP_DISCRETE_FLOOR
#define RAMP_DISCRETE_FLOOR RAMP_SMOOTH_FLOOR
#undef RAMP_DISCRETE_CEIL
#define RAMP_DISCRETE_CEIL RAMP_SMOOTH_CEIL
#undef RAMP_DISCRETE_STEPS
#define RAMP_DISCRETE_STEPS 9 // 9 steps

// Simple UI Ramp Stepped Ramp settings
#undef SIMPLE_UI_FLOOR
#define SIMPLE_UI_FLOOR 10
#undef SIMPLE_UI_CEIL
#define SIMPLE_UI_CEIL 90
#undef SIMPLE_UI_STEPS
#define SIMPLE_UI_STEPS 5 // 5 steps, spaced 20 levels apart





// ----- RAMP SETTINGS -----


// set manual memory to step 2 of Stepped Ramp
#undef DEFAULT_MANUAL_MEMORY
#define DEFAULT_MANUAL_MEMORY 20

// use turbo style 1 (2C goes to turbo) because ceiling and turbo are equal
#undef DEFAULT_2C_STYLE
#define DEFAULT_2C_STYLE 1





// ----- CHANNEL SETTINGS -----


// use main emitter/s by default
#undef DEFAULT_CHANNEL_MODE
#define DEFAULT_CHANNEL_MODE CM_MAIN

// enable only main channel
#undef CHANNEL_MODES_ENABLED
#define CHANNEL_MODES_ENABLED 0b0000000000000001





// ----- BLINKY/UTILITY MODES -----


// use white aux channel by default for blinkies
#undef DEFAULT_BLINK_CHANNEL
#define DEFAULT_BLINK_CHANNEL CM_AUXWHT
102 changes: 102 additions & 0 deletions users/isilmerie/models/hank-noctigon-kr4/anduril.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
// ----- AUXILIARY LEDS -----


// aux LEDs on off: voltage (9) high (2)
#undef RGB_LED_OFF_DEFAULT
#define RGB_LED_OFF_DEFAULT 0x29

// aux LEDs on lockout: voltage (9) low (1)
#undef RGB_LED_LOCKOUT_DEFAULT
#define RGB_LED_LOCKOUT_DEFAULT 0x19

// turn off post-off voltage reading
#undef DEFAULT_POST_OFF_VOLTAGE_SECONDS
#define DEFAULT_POST_OFF_VOLTAGE_SECONDS 0





// ----- RAMP LEVELS -----


// Smooth Ramp settings
#undef RAMP_SMOOTH_FLOOR
#define RAMP_SMOOTH_FLOOR 1
#undef RAMP_SMOOTH_CEIL
#define RAMP_SMOOTH_CEIL 130 // max regulated level
#undef DEFAULT_RAMP_SPEED
#define DEFAULT_RAMP_SPEED 2 // ramp speed: half

// Stepped Ramp settings
#undef RAMP_DISCRETE_FLOOR
#define RAMP_DISCRETE_FLOOR RAMP_SMOOTH_FLOOR
#undef RAMP_DISCRETE_CEIL
#define RAMP_DISCRETE_CEIL RAMP_SMOOTH_CEIL
#undef RAMP_DISCRETE_STEPS
#define RAMP_DISCRETE_STEPS 9 // 9 steps

// Simple UI Ramp Stepped Ramp settings
#undef SIMPLE_UI_FLOOR
#define SIMPLE_UI_FLOOR 10
#undef SIMPLE_UI_CEIL
#define SIMPLE_UI_CEIL 90
#undef SIMPLE_UI_STEPS
#define SIMPLE_UI_STEPS 5 // 5 steps, spaced 20 levels apart





// ----- RAMP SETTINGS -----


// set manual memory to step 2 of Stepped Ramp
#undef DEFAULT_MANUAL_MEMORY
#define DEFAULT_MANUAL_MEMORY 17

// use turbo style 3 (2C cycles between standby/ramp, ceiling, and turbo)
// from Pull Request #38
#undef DEFAULT_2C_STYLE
#define DEFAULT_2C_STYLE 3





// ----- CHANNEL SETTINGS -----


// use main emitter/s by default
#undef DEFAULT_CHANNEL_MODE
#define DEFAULT_CHANNEL_MODE CM_MAIN

// enable only main channel
#undef CHANNEL_MODES_ENABLED
#define CHANNEL_MODES_ENABLED 0b0000000000000001





// ----- BLINKY/UTILITY MODES -----


// use white aux channel by default for blinkies
#undef DEFAULT_BLINK_CHANNEL
#define DEFAULT_BLINK_CHANNEL CM_AUXWHT

// stock voltage reading is higher than actual: lower by 0.04 V
#undef VOLTAGE_FUDGE_FACTOR
#define VOLTAGE_FUDGE_FACTOR -1





// ----- MISC -----

// use S2 leakage current for ultralow mode on level 1/150
// from https://github.com/stcarlso/anduril/tree/ultra-low-mode
#undef DEFAULT_ULTRA_LOW_MODE
#define DEFAULT_ULTRA_LOW_MODE 3
Loading

0 comments on commit 3ba75a3

Please sign in to comment.