
GPS tracked SDS011 sensor, transmitting data via Lora through TTN to opensensemap.org based on Arduino Mega
19 lines
276 B
C++
19 lines
276 B
C++
#include <SPI.h>
|
|
#include "SdFat.h"
|
|
|
|
// create a serial output stream
|
|
ArduinoOutStream cout(Serial);
|
|
|
|
void setup() {
|
|
Serial.begin(9600);
|
|
|
|
// Wait for USB Serial
|
|
while (!Serial) {
|
|
SysCall::yield();
|
|
}
|
|
delay(2000);
|
|
|
|
cout << "Hello, World!\n";
|
|
}
|
|
|
|
void loop() {}
|