E-switch UI Development / FSM

Changing, compiling, flashing soft to hardware, testing. Repeating until desired result. It took for me few years only. Here is latest result

How to change/add /remove levels/steps in “Baton” code easy way aka how to use “level_calc.py” for mortals?
P.S. I didn’t find out how to and rewritten code in different way etc:

if (actual_level == 2) { set_level(3);}
else if (actual_level == 3) { set_level(15);}
else if (actual_level == 15) {set_level(29);}
…and so on.