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 Semtech

board/board.cpp

Committer:
abouillot
Date:
2017-01-30
Revision:
9:16106008960b
Parent:
1:263aa4ff29cd

File content as of revision 9:16106008960b:

/*
 / _____)             _              | |
( (____  _____ ____ _| |_ _____  ____| |__
 \____ \| ___ |    (_   _) ___ |/ ___)  _ \
 _____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
    (C)2015 Semtech

Description: Target board general functions implementation

License: Revised BSD License, see LICENSE.TXT file include in the project

Maintainer: Miguel Luis and Gregory Cristian
*/
#include "mbed.h"
#include "board.h"

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( );
//    sdsSensor = new SDS021(PC_10, PC_11);
//    dhtSensor = new DHT(D7, 22);
//    bmpSensor = new BMP085(D14, D15);
}

uint8_t BoardGetBatteryLevel( void ) 
{
    return 0xFE;
}