Degree Computation
Dependencies: aconno_SEGGER_RTT LSM9DS1 Si7006A20 adc52832_common aconnoMPL115A1 aconno_bsp
Diff: source/main.cpp
- Revision:
- 3:b62a73dc76b7
- Parent:
- 0:442d98af8cc7
- Child:
- 4:cb3513aa9814
--- a/source/main.cpp Fri Dec 14 13:01:55 2018 +0100 +++ b/source/main.cpp Fri Dec 14 13:33:03 2018 +0100 @@ -22,7 +22,6 @@ GapAdvertisingData adv_data = GapAdvertisingData(); advertising_packet advertisementPacket; -LSM9DS1 *mems; DigitalOut lightPower(p28); DigitalOut temperaturePower(p31); DigitalOut shdn(p6); @@ -61,8 +60,6 @@ int main() { - //printf("Main started.\r\n"); - BLE &ble = BLE::Instance(); ble.init(bleInitComplete); ble.onEventsToProcess(scheduleBleEventsProcessing); @@ -70,32 +67,6 @@ updateDataThread.start(updateDataTask); sendDataThread.start(sendDataTask); - - - /* - //DigitalOut bar(I2C_DATA); - //DigitalOut foo(I2C_CLK); - I2C *i2c; - float result; - while(true) - { - power = 1; - ThisThread::sleep_for(500); - i2c = new I2C(I2C_DATA, I2C_CLK); - //I2C i2c(I2C_DATA, I2C_CLK); - Si7006 si(i2c); - si.getHumidity(&result); - printf("Humidity is: %f\r\n", result); - power = 0; - //wait_ms(1000); - - //foo = 1; - //bar = 1; - - //I2C fooI2C(I2C_DATA, I2C_CLK); - ThisThread::sleep_for(1000); - } - */ while(true) {