Ina hackathon 2nd
Dependencies: ADXL345_I2C Chainable_RGB_LED EEAB-P1 MMA8652FC Sht31 TinyGPS mbed
Fork of ina-hack-test by
Diff: main.cpp
- Revision:
- 0:97a57be77fbb
- Child:
- 1:195da8230785
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Jun 24 03:45:00 2017 +0000
@@ -0,0 +1,26 @@
+#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);
+}
\ No newline at end of file
