First draft HMC5883 magnetometer sensor using physical quantities, outputting via serial port using std::cout on mbed os 5

Committer:
skyscraper
Date:
Thu Mar 26 12:27:43 2020 +0000
Revision:
7:5d14da0b4c95
Child:
8:c5dc1ce10722
Use "resourceManager" to keep global board resources in one place

Who changed what in which revision?

UserRevisionLine numberNew contents of line
skyscraper 7:5d14da0b4c95 1
skyscraper 7:5d14da0b4c95 2
skyscraper 7:5d14da0b4c95 3 #include "mbed.h"
skyscraper 7:5d14da0b4c95 4 #include "resourceManager.h"
skyscraper 7:5d14da0b4c95 5
skyscraper 7:5d14da0b4c95 6 /*
skyscraper 7:5d14da0b4c95 7 Global board resource definitions
skyscraper 7:5d14da0b4c95 8 */
skyscraper 7:5d14da0b4c95 9 namespace {
skyscraper 7:5d14da0b4c95 10 I2C local_i2c1(I2C_SDA, I2C_SCL );
skyscraper 7:5d14da0b4c95 11 }
skyscraper 7:5d14da0b4c95 12
skyscraper 7:5d14da0b4c95 13 namespace resource {
skyscraper 7:5d14da0b4c95 14
skyscraper 7:5d14da0b4c95 15 I2C & i2c1 = local_i2c1;
skyscraper 7:5d14da0b4c95 16 }
skyscraper 7:5d14da0b4c95 17