Blinky program example for Hexiwear

Simply Import this Program into your mbed compiler Select Compile to generate the binary file

Plug the Hexiwear board on the Docking station via the Extension connector (white) Connect on end of the USB cable to your computer USB port and the other end to the micro-USB port of the Docking station.

Drag n drop the Hexi_Blinky-red_HEXIWEAR.bin into the DAP-LINK drive from your file explorer Wait for download to complete Press the RESET-K64F button of your Docking station to launch the program

The RGB LED of your Hexiwear board should now blink red fast (see picture below) !!

/media/uploads/GregC/hexi_blinky-red.jpg

Committer:
stevep
Date:
Tue Mar 18 10:54:49 2014 +0000
Revision:
2:c30dc3ae7426
Parent:
0:7dec7e9ac085
Child:
3:2e347c65be00
add comment

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dan 0:7dec7e9ac085 1 #include "mbed.h"
dan 0:7dec7e9ac085 2
dan 0:7dec7e9ac085 3 DigitalOut myled(LED1);
dan 0:7dec7e9ac085 4
dan 0:7dec7e9ac085 5 int main() {
dan 0:7dec7e9ac085 6 while(1) {
dan 0:7dec7e9ac085 7 myled = 1;
dan 0:7dec7e9ac085 8 wait(0.2);
dan 0:7dec7e9ac085 9 myled = 0;
dan 0:7dec7e9ac085 10 wait(0.2);
stevep 2:c30dc3ae7426 11 // test
dan 0:7dec7e9ac085 12 }
dan 0:7dec7e9ac085 13 }