GPS Lora
Dependencies: LoRaWAN-lib MODGPS
main.cpp
- Committer:
- afeezaziz
- Date:
- 2016-12-28
- Revision:
- 0:f46da4ed04ab
File content as of revision 0:f46da4ed04ab:
#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() { }