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
Revision 10:ba778fc959b8, committed 2016-06-26
- Comitter:
- eisd
- Date:
- Sun Jun 26 18:33:04 2016 +0000
- Parent:
- 9:dc6ffa2ef179
- Child:
- 11:7c3fb795af73
- Commit message:
- Please, please stay still; ; Why do I code?
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Jun 26 18:31:45 2016 +0000 +++ b/main.cpp Sun Jun 26 18:33:04 2016 +0000 @@ -126,10 +126,12 @@ while(1) { //if (!central) for(int x = 0; x < 5; x++) { - //pc.printf(central? "stop %s %d\r\n" : "direction %s %d\r\n", directions[direction], stops_sent); + pc.printf(central? "stop %s %d\r\n" : "direction %s %d\r\n", directions[direction], stops_sent); if (central) { - if (stops_sent++ < 50) + if (stops_sent < 50) { + stops_sent++; BB(); + } } else { stops_sent = 0; switch(direction) {