stancecoke wrote: ↑
Jun 16, 2018 2:52 am
honya96 wrote: ↑
Jun 15, 2018 3:49 pm
Why not 5 really fast clicks on the lever,
Good idea! Very easy to program. But you will loose the possibility to define you own individual morse-code...
Is anyone seriously interested in using it in this way?
I also prefer that way, because I think must be something hard to change the state and not happen by mistake.
I also like the idea of showing the 99km/h for some seconds when offroad mode is activated and maybe 25km/h when it is deactivated.
Also, there is a state machine on the firmware to detect when ebike is stopped (wheel is stopped) and I think is a good idea to putor call there this piece, so the offroad state can be changed only with ebike stopped.
Do you want to implement that Stancecoke? If so, please try using the switch case as is better to understand than a big number of ifs.