Drivers for the mini robot designed for Princeton's MAE 433 course.
Dependencies: mbed-dsp mbed-rtos mbed
Dependents: MAE433_Library_Tester RobotBalancerv2
Diff: FXOS8700CQ.hpp
- Revision:
- 1:918a505314ea
- Parent:
- 0:9afc272fa65f
- Child:
- 4:2d38ad348e0d
diff -r 9afc272fa65f -r 918a505314ea FXOS8700CQ.hpp --- a/FXOS8700CQ.hpp Fri Jun 24 21:03:20 2016 +0000 +++ b/FXOS8700CQ.hpp Fri Jun 24 17:12:34 2016 -0400 @@ -15,7 +15,7 @@ /// Possible accelerometer sensitivity settings. enum AccelerometerSensitivity {TWO, FOUR, EIGHT}; /** - * @brief Constructor for the FXOS8700CQ Accelerometer/Magnetometer. + * @brief Constructor for the FXOS8700CQ Accelerometer/Magnetometer. Pin assignments have default values for the K22F board. * @param SDA The SDA Pin. * @param SCL the SCL Pin. * @param INT1 The pin that the INT1 line is connected to. @@ -23,7 +23,7 @@ * @param setting (optional) The maximum measurement acceleration in g's. May be TWO, FOUR, or EIGHT for * +/- 2/4/8 g's. A smaller maximum measurement allows for greater sensitivity. */ - FXOS8700CQ(PinName SDA, PinName SCL, PinName INT1, PinName INT2, AccelerometerSensitivity setting = TWO); + FXOS8700CQ(PinName SDA = PTB3, PinName SCL = PTB2, PinName INT1 = PTD0, PinName INT2 = PTD1, AccelerometerSensitivity setting = TWO); virtual ~FXOS8700CQ(); /** * @brief Read data from the accelerometer. Takes pointers to floats that store these variables.