Craig Evans
/
3pi_Lab1_Task3
Reading sensors
Fork of 3pi_Lab1_Task2 by
Diff: main.cpp
- Revision:
- 6:91fe8f26afc2
- Parent:
- 5:c792f0f3b46d
diff -r c792f0f3b46d -r 91fe8f26afc2 main.cpp --- a/main.cpp Wed Jul 05 13:04:18 2017 +0000 +++ b/main.cpp Tue Jul 09 12:40:51 2019 +0000 @@ -48,6 +48,12 @@ // these values are 0 to 1000 (0 is white/1000 is black) robot.get_calibrated_values(values); + // Can see the values using CoolTerm - select correct COM port + for (int i=0; i< 5 ; i++) { + printf("[%i] = %i | ",i,values[i]); + } + printf("\n"); + // display a bar graph on the LCD robot.display_sensor_values(values,1);