Ina hackathon 2nd
Dependencies: ADXL345_I2C Chainable_RGB_LED EEAB-P1 MMA8652FC Sht31 TinyGPS mbed
Fork of ina-hack-test by
main.cpp
- Committer:
- koyo_take
- Date:
- 2017-06-24
- Revision:
- 0:97a57be77fbb
- Child:
- 1:195da8230785
File content as of revision 0:97a57be77fbb:
#include "mbed.h" #include "TinyGPS.h" #include "Eeabp1.h" int main(void) { Eeabp1 board; int ret = 0; board.setLedState(LED_BLINK_FAST); board.debug("Hello ina-hack!\r\n"); board.setGrovePower(true); ret = board.setLoRaPower(true); if (ret != 0) { // board.setLedState(LED_OFF); board.debug("error %d\r\n", ret); } int i = 0; do { wait(10); board.loop(); board.sendLoRaString("hello %d", i++); } while(true); }