Program that combines a linefollower program with visible ligt communication.
Dependencies: m3pi_custom mbed
main.cpp@0:1f5782fc5ca3, 2018-05-09 (annotated)
- Committer:
- bertgereels
- Date:
- Wed May 09 15:35:31 2018 +0000
- Revision:
- 0:1f5782fc5ca3
- Child:
- 1:243ec35fafcd
this is a test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bertgereels | 0:1f5782fc5ca3 | 1 | #include "mbed.h" |
bertgereels | 0:1f5782fc5ca3 | 2 | #include "linefollower.h" |
bertgereels | 0:1f5782fc5ca3 | 3 | |
bertgereels | 0:1f5782fc5ca3 | 4 | DigitalOut myled(LED1); |
bertgereels | 0:1f5782fc5ca3 | 5 | |
bertgereels | 0:1f5782fc5ca3 | 6 | using namespace ProjectTwo; |
bertgereels | 0:1f5782fc5ca3 | 7 | |
bertgereels | 0:1f5782fc5ca3 | 8 | int main() { |
bertgereels | 0:1f5782fc5ca3 | 9 | LineFollower lijnvolger; |
bertgereels | 0:1f5782fc5ca3 | 10 | while(1) { |
bertgereels | 0:1f5782fc5ca3 | 11 | |
bertgereels | 0:1f5782fc5ca3 | 12 | lijnvolger.followTheLine(); |
bertgereels | 0:1f5782fc5ca3 | 13 | } |
bertgereels | 0:1f5782fc5ca3 | 14 | } |