Is there a better way to wait for a button press? It is using up a lot of battery waiting for the button press. I ran the app for around an hour last night, and Battery Usage shows smart BASIC as responsible for 73% of battery drain for the past 24 hours. The next biggest app is 8%.
99.9% of the time the app is just in this loop waiting.
Code: Select all
loop:
if button_pressed("button") then
... do stuff ...
endif
goto loop