Mantis BUTTON_DEF Command
The BUTTON_DEF command creates a dedicated button-handler routine that runs when the user clicks the physical button during payload execution.
Syntax & Examples
hello.mantis
1BUTTON_DEF2 LED_ON3 STRINGLN Button event activated!4 DELAY 3005 LED_OFF6END_BUTTONRelated Commands
WAIT_FOR_BUTTON_PRESS— Synchronous button pause.IF / ELSE— Conditional button checks.
Last updated on