code
Dependencies: ContinuousServo Final Project ES202 KANG TRUONG ADAMS TCS3472_I2C Tach
Diff: PROJECT.cpp
- Revision:
- 0:b33656ee16a7
- Child:
- 1:8a2bdbd69fba
diff -r 000000000000 -r b33656ee16a7 PROJECT.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PROJECT.cpp Thu Apr 19 14:20:23 2018 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "ContinuousServo.h" +#include "Tach.h" +#include "TCS3472_I2C.h" + +Serial pc(USBTX,USBRX); +// color sensor +TCS3472_I2C rgb_sensor( p9, p10 ); // Establish RGB sensor object +// Hall effect sensor +DigitalIn hall(p22); +// sonar sensor +AnalogIn sonar(p20); // range sensor 9.8 mV/inch +//servos +ContinuousServo left(p23); +ContinuousServo right(p26); +//encoders +Tach tLeft(p17,64); +Tach tRight(p13,64); \ No newline at end of file