![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Basic library for Pololu's Sharp GP2Y0A51SK0F
Dependencies: mbed
Dependents: GrabTest R5 2016 Robotics Team 1
Diff: DistanceSensor_Test.cpp
- Revision:
- 2:6ebd72287e97
- Parent:
- 1:8db052ec94f1
--- a/DistanceSensor_Test.cpp Thu Apr 07 23:06:50 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#include "DistanceSensor.h" -#include "mbed.h" - -int main() -{ - Serial pc(USBTX, USBRX); - DistanceSensor ds(PTB0,1); - - while(true) - { - pc.printf(" \rDistance = %f cm", ds.getDistance()); - wait(1); - } - - return 0; -} \ No newline at end of file