sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
524 stars 246 forks source link

IR Multi-Command Support #324

Closed d03n3rfr1tz3 closed 2 years ago

d03n3rfr1tz3 commented 2 years ago

added support for multiple commands on one button.

also refactored memory allocation of the buttons to a more dynamic approach. therefore it is not necessary to increase the IR_MAX_BUTTONS in the code anymore, because it will automatically increase the array including some treshold (for when someone wants to add more buttons via bluetooth) based on the JSON configuration.

it would be nice if you can have a closer look to the memory allocation, because I'm still not used to these things and might have done something, that works but does not have the effect I wanted. 😉

sharandac commented 2 years ago

I keep it in mind on my next review to check your memory allocation :-)