MTclock: Example 1
Event management for Uno, Nano, Mega

Send regularly "A"

This program regularly sends the letter 'A' on the console/p>

Complete program recommended

This program is completely under interruption, and releases loop which can be used to do something else.

// This program regularly sends the letter 'A' on the console

#include <MTobjects.h> // V1.0.6 See http://arduino.dansetrad.fr/en/MTobjects  

void send(void)
{
  Serial.print('A');
}

MTclock Metronme(1000 milli_seconds, send);



void setup()
{
  Serial.begin(115200);
}

void loop(){}