GPIO program example for Hexiwear
Fork of Hexi_Blinky_Example by
This project demonstrates the use of a Hexiwear GPIO
Pin PTB13 accessible via the Docking station (pin INT socket 1) will toggle and RGB LED will blink Green accordingly.
main.cpp
- Committer:
- GregC
- Date:
- 2016-08-15
- Revision:
- 14:defc334658db
- Parent:
- 4:81cea7a352b0
File content as of revision 14:defc334658db:
#include "mbed.h" DigitalOut gpo(PTB13); DigitalOut led(LED_GREEN); int main() { while (true) { gpo = !gpo; // toggle pin led = !led; // toggle led wait(0.2f); } }