Buttons sequence as operation mode change trigger? #196
-
|
Hi, Would it be possible to implement a more flexible configuration for choosing how the operation mode change is triggered? For instance, I think it could be great to be able to do a sequence of 3 of the display buttons (like a PIN basically) to activate off road mode, and then a single press on menu button for instance to go back to standard mode. (BBS02B here) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Not possible, this is only firmware for controller. Display does not send button presses to controller. Only sends selected assist level number, light output state, and walk assist state. |
Beta Was this translation helpful? Give feedback.
Current mode switch based on light switch is implemented here:
bbs-fw/src/firmware/app.c
Line 206 in 39c373b
The other signal from display is just above it: app_set_assist_level()
Build instructions are on wiki:
https://github.com/danielnilsson9/bbs-fw/wiki/Build-from-Source
No reference on the display protocol, it is revered engineered from communication between original firmware and display, implemented here: https://github.com/danielnilsson9/bbs-fw/blob/master/src/firmware/extcom.c
If you were to develop a custom display a different protocol might be preferred, this one is very limited.