Wii Nunchuk via RFM69HW to Duplo 9203 Remote Control Car Kit using ARM mbed on a FRDM-KL25Z
Dependencies: CRC FastPWM RFM69 USBDevice WakeUp WiiChuk_compat mbed-rtos mbed tlc59108
Fork of wiiNunchuk_compat by
Diff: main.cpp
- Revision:
- 20:95a8fe0a15bc
- Parent:
- 18:18c91572768a
- Child:
- 21:46a864a4b9d5
--- a/main.cpp Tue Jun 28 13:40:24 2016 +0000 +++ b/main.cpp Tue Jun 28 13:41:30 2016 +0000 @@ -394,7 +394,7 @@ WakeUp::set(1); deepsleep(); nun_init(); - nun->Read(&n->X, &n->Y, &n->aX, &n->aY, &n->aZ, &n->C, &n->Z); + nun->Read(&next->X, &next->Y, &next->aX, &next->aY, &next->aZ, &next->C, &next->Z); Thread::wait(10); #if DEBUG r = 0; Thread::wait(10); r = 1; Thread::wait(10);