A wireless accelerometer based joypad using FRDM-KL25Z for the Gameduino based space invaders.
Dependencies: MMA8451Q mbed nRF2401A
Fork of nRF2401A_Hello_World by
nRF2401A connected to the KL25Z board:
Diff: main.cpp
- Revision:
- 5:8e11050f1464
- Parent:
- 4:4a84fcba7bd4
diff -r 4a84fcba7bd4 -r 8e11050f1464 main.cpp --- 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();