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.
Fork of Hexi_Click_Relay_Example by
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut relay1(PTA11); 00004 DigitalOut relay2(PTC3); 00005 00006 // main() runs in its own thread in the OS 00007 // (note the calls to Thread::wait below for delays) 00008 int main() { 00009 while (true) { 00010 relay1 = 1; 00011 Thread::wait(500); 00012 relay1 = 0; 00013 Thread::wait(500); 00014 relay2 = 1; 00015 Thread::wait(500); 00016 relay2 = 0; 00017 Thread::wait(500); 00018 } 00019 } 00020
Generated on Wed Jul 20 2022 18:53:39 by
1.7.2
