Node code for sx1272 LoRa transciever
Dependencies: mbed BMP085 BufferedSerial DHT Sds021 Chainable_RGB_LED DigitDisplay LoRaWAN-lib SX1272Lib
Fork of LoRaWAN-demo-72-bootcamp by
Diff: board/board.cpp
- Revision:
- 9:16106008960b
- Parent:
- 1:263aa4ff29cd
--- a/board/board.cpp Sat Jan 07 08:52:00 2017 +0000 +++ b/board/board.cpp Mon Jan 30 21:49:58 2017 +0000 @@ -17,12 +17,31 @@ SX1272MB2xAS Radio( NULL ); +/*! + * BMP085 object to read presure and temperature + */ +//I2C i2c(D14, D15); +BMP085 bmpSensor(D14, D15, BMP085_MODE_HIGH_RESOLUTION); +//BMP085 bmpsensor(i2c, BMP085_MODE_HIGH_RESOLUTION); +//BMP085 *bmpSensor; + +/*! + * DHT object to read humidity and temperature + */ +DHT dhtSensor(D7, 22); +//DHT *dhtSensor; + +SDS021 sdsSensor(PC_10, PC_11); +//SDS021 *sdsSensor; + void BoardInit( void ) { - TimerTimeCounterInit( ); +// TimerTimeCounterInit( ); +// sdsSensor = new SDS021(PC_10, PC_11); +// dhtSensor = new DHT(D7, 22); +// bmpSensor = new BMP085(D14, D15); } - uint8_t BoardGetBatteryLevel( void ) { return 0xFE;