Skip to contentSkip to Content

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_DEF
2 LED_ON
3 STRINGLN Button event activated!
4 DELAY 300
5 LED_OFF
6END_BUTTON

Last updated on