beemac
10 kW
casainho said:I agree to do the best possible for power saving and sharing the code. If rananna can not do it, then I hope you will be able to do it. Rananna is working on the wireless remote and you on the wired remote. The board, buttons and LEDs are just the same, so I think the code should be the same.beemac said:@casainho - I don't see how we can have anything other than something like what I've written in the controller code. Either we need a separate state machine for each led event - to turn on/off or whatever - or we use something like i've put together that manages the state when clocked. We can't just turn on leds, wait, turn off etc. that's not going to work.
Agree 100% on using the same method to illuminate the led - and I can take the work rananna's doing and make my sequencer use the same method to light the LED. But unless rananna wants to use my sequence player (even though he doesn't need to because the way the remote code works is slightly different around scheduling) then we'll have to use different methods to play sequences from what I can see...
Updated branch link below - will wait for rananna's PR and discuss how best to proceed.
https://github.com/4var1/TSDZ2_wire...ke_wireless_TSDZ2/firmware/include/ledalert.h
https://github.com/4var1/TSDZ2_wireless/blob/led-alerts/EBike_wireless_TSDZ2/firmware/ledalert.c