Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed_events.h" 00002 #include <stdio.h> 00003 00004 int main() { 00005 // creates a queue with the default size 00006 EventQueue queue; 00007 00008 // events are simple callbacks 00009 queue.call(printf, "called immediately\n"); 00010 queue.call_in(2000, printf, "called in 2 seconds\n"); 00011 queue.call_every(1000, printf, "called every 1 seconds\n"); 00012 00013 // events are executed by the dispatch method 00014 queue.dispatch(); 00015 }
Generated on Sat Jul 23 2022 03:30:13 by
1.7.2