Mac Lobdell
/
Hexi_Click_Relay_Example
relay exmaples
Fork of Hexi_Click_Relay_Example by
main.cpp
- Committer:
- maclobski
- Date:
- 2016-08-25
- Revision:
- 1:489e49494755
- Parent:
- 0:b492a09a523e
File content as of revision 1:489e49494755:
#include "mbed.h" DigitalOut relay1(PTA11); DigitalOut relay2(PTC3); // main() runs in its own thread in the OS // (note the calls to Thread::wait below for delays) int main() { while (true) { relay1 = 1; Thread::wait(500); relay1 = 0; Thread::wait(500); relay2 = 1; Thread::wait(500); relay2 = 0; Thread::wait(500); } }