Grenade Drone Controller

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
halusis
Date:
Mon Aug 20 03:08:50 2018 +0000
Parent:
1:d2b6491e52fd
Commit message:
Grenade Drone Switch

Changed in this revision

GranadeSwitch.cpp Show annotated file Show diff for this revision Revisions of this file
PinAssign/PinAssign.cpp Show annotated file Show diff for this revision Revisions of this file
SwitchFn/SwitchFn.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d2b6491e52fd -r 915533cf5d94 GranadeSwitch.cpp
--- a/GranadeSwitch.cpp	Fri Jul 20 06:11:24 2018 +0000
+++ b/GranadeSwitch.cpp	Mon Aug 20 03:08:50 2018 +0000
@@ -52,9 +52,9 @@
                 Led9=0;
             }
             RcvStat();
+            
+            pc.printf("%x %x\n",SigBit,RcvBit);
             RcvBit=0;
-            
-            pc.printf("%x\n",SigBit);
         }
         if(Sw1==0) Sw1Fn();
         if(Sw2==0) {Sw2Fn();}
diff -r d2b6491e52fd -r 915533cf5d94 PinAssign/PinAssign.cpp
--- a/PinAssign/PinAssign.cpp	Fri Jul 20 06:11:24 2018 +0000
+++ b/PinAssign/PinAssign.cpp	Mon Aug 20 03:08:50 2018 +0000
@@ -28,5 +28,5 @@
 DigitalOut myled3(LED3);
 DigitalOut myled4(LED4);
 
-Serial Snd2Crr(p28,p27);
+Serial Snd2Crr(p9,p10);
 Serial pc(USBTX, USBRX);
\ No newline at end of file
diff -r d2b6491e52fd -r 915533cf5d94 SwitchFn/SwitchFn.cpp
--- a/SwitchFn/SwitchFn.cpp	Fri Jul 20 06:11:24 2018 +0000
+++ b/SwitchFn/SwitchFn.cpp	Mon Aug 20 03:08:50 2018 +0000
@@ -24,6 +24,7 @@
     Snd2Crr.putc(0xff);
     Snd2Crr.putc(0xff);
     
+    /*
     //test//////////////////
     if(SigBit&0x80) Led1=1;
     if(SigBit&0x40) Led2=1;
@@ -34,6 +35,7 @@
     if(SigBit&0x02) Led7=1;
     if(SigBit&0x01) Led8=1;
     ///////////////////////////
+    */
 }
 
 void ProcCrr(void) {RcvBit=Snd2Crr.getc();}