From dac03ab316ed47aff8e1e28d357935c7e4cbda29 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Mon, 23 Aug 2021 04:24:08 -0600 Subject: moved jump start into FSM so it'll be more universal and the app won't need special clauses (also adjusted KR4 jump start levels a bit) --- spaghetti-monster/fsm-ramping.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spaghetti-monster/fsm-ramping.h') diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h index d1ef6bc..7a4fa3b 100644 --- a/spaghetti-monster/fsm-ramping.h +++ b/spaghetti-monster/fsm-ramping.h @@ -82,6 +82,16 @@ PROGMEM const PWM_DATATYPE pwm4_levels[] = { PWM4_LEVELS }; PROGMEM const PWM_DATATYPE pwm_tops[] = { PWM_TOPS }; #endif +#ifdef USE_JUMP_START +#ifndef JUMP_START_TIME +#define JUMP_START_TIME 8 // in ms, should be 4, 8, or 12 +#endif +#ifndef DEFAULT_JUMP_START_LEVEL +#define DEFAULT_JUMP_START_LEVEL 10 +#endif +uint8_t jump_start_level = DEFAULT_JUMP_START_LEVEL; +#endif + // default / example ramps #ifndef PWM1_LEVELS #if PWM_CHANNELS == 1 -- cgit v1.2.3