Hexiwear / Mbed OS Hexi_Timer_Example

Fork of Hexi_Timer_Example by Hexiwear

Committer:
GregC
Date:
Mon Aug 15 17:04:00 2016 +0000
Revision:
1:d1b88d737fc1
Parent:
0:19c6b2e95531
Timer program example for Hexiwear

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GregC 0:19c6b2e95531 1 #include "mbed.h"
GregC 0:19c6b2e95531 2
GregC 0:19c6b2e95531 3 Timer t;
GregC 0:19c6b2e95531 4 Serial pc(USBTX, USBRX);
GregC 0:19c6b2e95531 5
GregC 0:19c6b2e95531 6 int main()
GregC 0:19c6b2e95531 7 {
GregC 0:19c6b2e95531 8 t.start();
GregC 1:d1b88d737fc1 9 pc.printf("Hello World!\r\n");
GregC 0:19c6b2e95531 10 t.stop();
GregC 1:d1b88d737fc1 11 pc.printf("The time taken to boot and display this message was %f seconds\r\n\n", t.read());
GregC 0:19c6b2e95531 12 }