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.
Dependencies: mbed SerialInputReactionHandler
main.cpp
00001 #include "mbed.h" 00002 #include "SerialInputReactionHandler.h" 00003 00004 int main() 00005 { 00006 // Initialise the digital pin LED1 as an output 00007 DigitalOut led(LED1); 00008 SerialInputReactionHandler reactor; 00009 Serial pc(USBTX, USBRX, 921600); 00010 00011 pc.attach(callback(&reactor, &SerialInputReactionHandler::key_bind)); 00012 00013 while (true) { 00014 led = !led; 00015 wait(.5); 00016 } 00017 }
Generated on Wed Aug 24 2022 06:40:00 by
1.7.2