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.
Dependencies: mbed-dsp mbed-rtos mbed
Dependents: MAE433_Library_Tester RobotBalancerv2
Revision 1:918a505314ea, committed 2016-06-24
- Comitter:
- Weimen Li
- Date:
- Fri Jun 24 17:12:34 2016 -0400
- Parent:
- 0:9afc272fa65f
- Child:
- 2:2c175218c12a
- Commit message:
- Added default pin assignments for some libraries.
Changed in this revision
| FXOS8700CQ.hpp | Show annotated file Show diff for this revision Revisions of this file |
| HC06Bluetooth.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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.
--- a/HC06Bluetooth.hpp Fri Jun 24 21:03:20 2016 +0000
+++ b/HC06Bluetooth.hpp Fri Jun 24 17:12:34 2016 -0400
@@ -73,7 +73,7 @@
* @param charCallbackFunc A function that will be called once a new character has been read. It should return void and take as an argument
* the character that has been read.
*/
- HC06Bluetooth(PinName TX, PinName RX, void (*lineCallbackFunc) (const char* readString) = NULL, void (*charCallbackFunc) (char readChar) = NULL);
+ HC06Bluetooth(PinName TX = PTD3, PinName RX = PTD2, void (*lineCallbackFunc) (const char* readString) = NULL, void (*charCallbackFunc) (char readChar) = NULL);
virtual ~HC06Bluetooth();
/**
* @brief Run the setup routine to configure the device name and the device pin.