![](/media/cache/profiles/a36470cf1f8e5aaf38466d65bd080699.jpg.50x50_q85.jpg)
Reading sensors
Fork of 3pi_Lab1_Task2 by
Revision 6:91fe8f26afc2, committed 2019-07-09
- Comitter:
- eencae
- Date:
- Tue Jul 09 12:40:51 2019 +0000
- Parent:
- 5:c792f0f3b46d
- Commit message:
- Used calibrated values for bar graph
Changed in this revision
m3pi.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/m3pi.lib Wed Jul 05 13:04:18 2017 +0000 +++ b/m3pi.lib Tue Jul 09 12:40:51 2019 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/eencae/code/m3pi/#b4fc73882a2a +https://developer.mbed.org/users/eencae/code/m3pi/#074ce6197b51
--- 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);