Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 8:07464acc8a85, committed 2016-10-14
- Comitter:
- csellier
- Date:
- Fri Oct 14 09:53:56 2016 +0000
- Parent:
- 7:5da0ff9752d5
- Child:
- 9:a543d0cdfce9
- Commit message:
- LDR value added
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 13 22:02:34 2016 +0000 +++ b/main.cpp Fri Oct 14 09:53:56 2016 +0000 @@ -28,6 +28,8 @@ float front; float left; float right; + float LDRleft; + float LDRright; // set the USB serial interface baud rate pc.baud(921600); @@ -39,6 +41,8 @@ front = IRfront.read(); left = IRleft.read(); right = IRright.read(); + LDRvalueright = LDRright.read(); + LDRvalueleft = LDRleft.read() if (front > DISTANCE) { if (left > DISTANCE) {