Sudip Mandal
/
sensorserial
taking sensor values to PC
main.cpp@0:49ab0039fbb4, 2016-11-03 (annotated)
- 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?
User | Revision | Line number | New 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 | } |