APP 4
Dependencies: mbed CRC16 mbed-rtos
Diff: APP.cpp
- Revision:
- 19:41e914ab0d19
- Parent:
- 18:493a5aa7e4ec
- Child:
- 20:f0932bfe09ed
--- a/APP.cpp Mon Feb 22 18:31:05 2016 +0000 +++ b/APP.cpp Mon Feb 22 18:38:53 2016 +0000 @@ -101,13 +101,18 @@ LPC_PINCON->PINSEL0 |= (3 << 8); // P0.4 = CAP2.0 initTimers(); - + STATES tempState = BLU; while (true) { if (dataReady) { pc.printf("ASDF"); } + if (tempState != mefSTATE) + { + pc.printf("BluBlu new state: %i \r\n", mefSTATE); + tempState = mefSTATE; + } pc.printf("%i ", period); pc.printf("%i ", value); pc.printf("%i \r\n", in.read());