A wireless accelerometer based joypad using FRDM-KL25Z for the Gameduino based space invaders.

Dependencies:   MMA8451Q mbed nRF2401A

Fork of nRF2401A_Hello_World by Chris Dick

nRF2401A connected to the KL25Z board:

/media/uploads/TheChrisyd/2014-03-08_22.55.16.jpg

Revision:
5:8e11050f1464
Parent:
4:4a84fcba7bd4
--- a/main.cpp	Sat Oct 26 22:43:56 2013 +0000
+++ b/main.cpp	Sun Mar 09 12:27:41 2014 +0000
@@ -20,11 +20,7 @@
     wait(0.005);
     pc.printf("Hello nRF2401A\n\r");
      
-    rf1.setDataPayloadLength(4 << 3)
-       .setAddress(0x0, 0x0, 0xa6, 0xa6, 0xa6, 3 << 3)
-       .setCRCMode(nRF2401A::NO_CRC)
-       .setDataRate(nRF2401A::BIT_RATE_250KBITS)
-       .setChannel(0x02);
+    rf1.setAddress(0x0, 0x0, 0xa6, 0xa6, 0xa6, 3 << 3);
        
     rf1.printControlPacket(pc);
     rf1.flushControlPacket();