Grenade Drone Controller
Dependencies: mbed
Revision 2:915533cf5d94, committed 2018-08-20
- Comitter:
- halusis
- Date:
- Mon Aug 20 03:08:50 2018 +0000
- Parent:
- 1:d2b6491e52fd
- Commit message:
- Grenade Drone Switch
Changed in this revision
--- 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();}
--- 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
--- 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();}