Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ADXL345_I2C MMA8652FC Sht31 TinyGPS mbed Chainable_RGB_LED
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);
}
