This is a for debugging \\\\\\\"BLUE USB\\\\\\\". You can connect with HCI mode. How to connect White Wizard Board TANK *White Wizard Board - Motor Driver Board * p 21 - IN_R1 * p 22 - IN_R2 * p 23 - IN_L2 * p 24 - IN_L1
Revision 1:c56059923036, committed 2011-08-31
- Comitter:
- halfpitch
- Date:
- Wed Aug 31 11:10:18 2011 +0000
- Parent:
- 0:a6476c138e84
- Commit message:
- Rev.B
Changed in this revision
TestShell.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a6476c138e84 -r c56059923036 TestShell.cpp --- a/TestShell.cpp Sun Jul 10 01:31:52 2011 +0000 +++ b/TestShell.cpp Wed Aug 31 11:10:18 2011 +0000 @@ -33,14 +33,15 @@ #include "hci.h" //#include "hci_private.h" - DigitalOut myled1(LED1); DigitalOut myled2(LED2); DigitalOut myled3(LED3); -DigitalOut pin11(p11); -DigitalOut pin12(p12); -DigitalOut pin13(p13); -DigitalOut pin14(p14); +DigitalOut myled4(LED4); + +DigitalOut pin11(p21); +DigitalOut pin12(p22); +DigitalOut pin13(p23); +DigitalOut pin14(p24); void printf(const BD_ADDR* addr) { @@ -210,28 +211,44 @@ pin12 = 1; pin13 = 1; pin14 = 1; + + myled1 = 1; + myled2 = 1; + myled3 = 1; + myled4 = 1; + break; } case 0x51: // "down" { printf("Key down "); - pin11 = 0; - pin12 = 1; + pin11 = 1; + pin12 = 0; pin13 = 0; pin14 = 1; + myled1 = 1; + myled2 = 0; + myled3 = 0; + myled4 = 1; + break; } case 0x52: // "up" { printf("Key up "); - pin11 = 1; - pin12 = 0; + pin11 = 0; + pin12 = 1; pin13 = 1; pin14 = 0; + myled1 = 0; + myled2 = 1; + myled3 = 1; + myled4 = 0; + break; } @@ -241,8 +258,13 @@ pin11 = 0; pin12 = 1; - pin13 = 1; - pin14 = 0; + pin13 = 0; + pin14 = 1; + + myled1 = 0; + myled2 = 1; + myled3 = 0; + myled4 = 1; break; } @@ -253,8 +275,13 @@ pin11 = 1; pin12 = 0; - pin13 = 0; - pin14 = 1; + pin13 = 1; + pin14 = 0; + + myled1 = 1; + myled2 = 0; + myled3 = 1; + myled4 = 0; break; } @@ -268,6 +295,10 @@ pin13 = 0; pin14 = 0; + myled1 = 0; + myled2 = 0; + myled3 = 0; + myled4 = 0; break; } default: