First draft HMC5883 magnetometer sensor using physical quantities, outputting via serial port using std::cout on mbed os 5
Diff: resourceManager.cpp
- Revision:
- 7:5d14da0b4c95
- Child:
- 8:c5dc1ce10722
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/resourceManager.cpp Thu Mar 26 12:27:43 2020 +0000 @@ -0,0 +1,17 @@ + + +#include "mbed.h" +#include "resourceManager.h" + +/* + Global board resource definitions +*/ +namespace { + I2C local_i2c1(I2C_SDA, I2C_SCL ); +} + +namespace resource { + + I2C & i2c1 = local_i2c1; +} +