LP Transmitter Wakeup

Dependencies:   max32630fthr USBDevice

Files at this revision

API Documentation at this revision

Comitter:
tlyp
Date:
Fri Sep 04 17:52:25 2020 +0000
Parent:
2:33b3b46a9c0d
Child:
4:2e3db197b7e2
Commit message:
initial commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Sep 04 16:59:21 2020 +0000
+++ b/main.cpp	Fri Sep 04 17:52:25 2020 +0000
@@ -78,7 +78,9 @@
 char  TransTable[] = {0x1F,0x18,0x06,0x01}; //Used to translate data for FEC -- Make sure it is identical to receiver
 Translator transTx(SymmetricKey, TransTable); //Initialize Encoder
 
+//RTC ALARM
 #define SendDelay   5   //Number of seconds between sending data
+
 char DEVICETYPE = 'T';  //'T' for Temperature Sensor
 char DEVICEID = 0x01;   //Set the Device ID
 
@@ -178,6 +180,7 @@
     
     //Main loop
     while(1) {
+        
         //hold down switch 1 to prevent the microcontroller from going into LP0
         while(sw1 == 0);