Event manager for Arduino