taking sensor values to PC

Dependencies:   mbed

Committer:
papuxtream
Date:
Thu Nov 03 06:47:52 2016 +0000
Revision:
0:49ab0039fbb4
taking values from sensor to PC

Who changed what in which revision?

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