Display distance in hyper terminal

Dependencies:   HC_SR04_Ultrasonic_Library mbed

Committer:
Sandesh
Date:
Sat Jan 10 07:33:15 2015 +0000
Revision:
0:63646f8d0c64
ultrasonic sensor

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Sandesh 0:63646f8d0c64 1 #include "mbed.h"
Sandesh 0:63646f8d0c64 2
Sandesh 0:63646f8d0c64 3 DigitalOut myled(LED1);
Sandesh 0:63646f8d0c64 4
Sandesh 0:63646f8d0c64 5 int main() {
Sandesh 0:63646f8d0c64 6 while(1) {
Sandesh 0:63646f8d0c64 7 myled = 1;
Sandesh 0:63646f8d0c64 8 wait(0.2);
Sandesh 0:63646f8d0c64 9 myled = 0;
Sandesh 0:63646f8d0c64 10 wait(0.2);
Sandesh 0:63646f8d0c64 11 }
Sandesh 0:63646f8d0c64 12 }