I need a very simple driver with two modes without PWM. I decided on Nanjg with 12 AMC, 2+10 configuration. Because I'm not a coder I do not know how to convert the code to work as I want. One channel, 2 amc - first mode, second channel, 12 AMC - second mode. Without memory.
I decided to STAR because it's probably the simplest code that has two channels.
I tried something like that, but only one 700mA channel works.
/*
* =========================================================================
* Settings to modify per driver
*/
#define VOLTAGE_MON // Comment out to disable
//#define TICKS_250MS // If enabled, ticks are every 250 ms. If disabled, ticks are every 500 ms
// Affects mode saving and turbo timeout/rampdown timing
#define LVP_MIN 7 // Lowest level the LVP will step down to
//#define MODE_MOON 3 // Can comment out to remove mode, but should be set through soldering stars
#define MODE_LOW 255 // Can comment out to remove mode
//#define MODE_MED 39 // Can comment out to remove mode
#define MODE_HIGH 255 // Can comment out to remove mode
#define MODE_TURBO 255 // Can comment out to remove mode
#define MODE_TURBO_LOW 140 // Level turbo ramps down to if turbo enabled
#define TURBO_TIMEOUT 240 // How many WTD ticks before before dropping down. If ticks set for 500 ms, then 240 x .5 = 120 seconds. Max value of 255 unless you change "ticks"
// variable to uint8_t
#define TURBO_RAMP_DOWN // By default we will start to gradually ramp down, once TURBO_TIMEOUT ticks are reached, 1 PWM_LVL each tick until reaching MODE_TURBO_LOW PWM_LVL
// If commented out, we will step down to MODE_TURBO_LOW once TURBO_TIMEOUT ticks are reached
#define FAST_PWM_START 8 // Above what output level should we switch from phase correct to fast-PWM?
#define DUAL_PWM_START 255 // Above what output level should we switch from the alternate PWM output to both PWM outputs? Comment out to disable alternate PWM output
#define WDT_TIMEOUT 2 // Number of WTD ticks before mode is saved
#define ADC_LOW 130 // When do we start ramping
#define ADC_CRIT 120 // When do we shut the light off
/*
* =========================================================================
*/
This is the one-mode version by ToyKeeper, but I also tried the JonnyC version.
You can also recommend a driver with two modes lo> hi, no memory, no pwm. For green osram 2mm.