lorawan/sodaq_one/nsarduino.h

41 lines
633 B
C
Raw Permalink Normal View History

2017-01-04 08:33:19 +00:00
#include <Arduino.h>
2016-10-22 20:38:24 +00:00
/* battery.ino */
2017-01-04 08:33:19 +00:00
// uint16_t getBatteryVoltage();
2017-02-19 10:07:05 +00:00
int getBattery();
2016-10-22 20:38:24 +00:00
void blink(int length);
2017-02-19 10:07:05 +00:00
void led_on();
void led_off();
void signal_loop_start();
2017-02-19 10:07:05 +00:00
void setupBuzzer(int pin);
2016-10-22 20:38:24 +00:00
void buzzerOn();
void buzzerOff();
2017-02-19 10:07:05 +00:00
void buzz(int pin, int ms);
2016-10-22 20:38:24 +00:00
/* compass.ino */
extern char compassReport[80];
2016-10-24 19:34:02 +00:00
/* ledcolours.ino */
void setupLED();
/* loudness.ino */
int readLoudness();
2016-10-22 20:38:24 +00:00
/* lora.ino */
void setupLoRa();
void sendPacket(String packet);
/* sunlight.ino */
String getSunLight();
void setupSunLight();
2016-11-27 19:03:44 +00:00
/* gps.ino */
void gpsSetup();
String gpsGetPostion(long waittime);
String gpsGetDateTime(long waittime);