#include #include int loopCount = 0; int state = 0; void button() { if (state == 0) { SwitchControlLibrary().PressButtonA(); state = 1; } else { SwitchControlLibrary().ReleaseButtonA(); state = 0; } } void setup() { SwitchControlLibrary(); MsTimer2::set(17, button); MsTimer2::start(); } void loop() { }