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

Files at this revision

API Documentation at this revision

Comitter:
TheChrisyd
Date:
Sun Mar 09 12:27:41 2014 +0000
Parent:
4:4a84fcba7bd4
Commit message:
Updated to match Library update

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
nRF2401A.lib Show annotated file Show diff for this revision Revisions of this file
--- 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();
--- a/nRF2401A.lib	Sat Oct 26 22:43:56 2013 +0000
+++ b/nRF2401A.lib	Sun Mar 09 12:27:41 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/TheChrisyd/code/nRF2401A/#fb7cb88e80a4
+http://mbed.org/users/TheChrisyd/code/nRF2401A/#7245524e37e4