GPS Lora

Dependencies:   LoRaWAN-lib MODGPS

Revision:
0:f46da4ed04ab
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Dec 28 07:22:55 2016 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+AnalogOut my_output(PA_4);
+
+#define PI        (3.141592653589793238462)
+#define AMPLITUDE (1.0)    // x * 3.3V
+#define PHASE     (PI * 1) // 2*pi is one period
+#define RANGE     (0x7FFF)
+#define OFFSET    (0x7FFF)
+
+// Configuration for sinewave output
+#define BUFFER_SIZE (360)
+uint16_t buffer[BUFFER_SIZE];
+
+void calculate_sinewave(void);
+
+int main() {
+
+}