Testing of reflection sensor query
Dependencies: Test_motor mbed
test_reflection.cpp
- Committer:
- bayagich
- Date:
- 2014-05-20
- Revision:
- 1:5de755abb8d3
File content as of revision 1:5de755abb8d3:
#include "mbed.h" #include "m3pi_ng.h" DigitalOut myled(LED1); m3pi george; int main() { int query[5]; george.sensor_auto_calibrate(); //put into query array of 5 george.calibrated_sensor(query); //locate to print on first line george.locate(0,0); george.printf("%i %i %i", query[0], query[1], query[2]); //locate to print on second line george.locate(0,1); george.printf("%i %i", query[3], query[4]); }