#include <MsTimer2.h> volatile int i; void timer() { i=!i; digitalWrite(LED_BUILTIN,i); } void setup() { pinMode(LED_BUILTIN, OUTPUT); MsTimer2::set(1000, timer); MsTimer2::start(); } void loop() { }