Andriy Makukha
/
football_project_wo_output
football_project_wo_output
Fork of football_project by
Diff: main.cpp
- Revision:
- 14:76fb883a3cb8
- Parent:
- 13:28332f65d14b
- Child:
- 15:b86c4b798aa1
--- a/main.cpp Sun Jun 21 08:44:24 2015 +0000 +++ b/main.cpp Tue Jun 30 07:35:28 2015 +0000 @@ -65,9 +65,6 @@ void pin_mode( PinName, PinMode ); } -// Not using "LED" or "LED1" because target NRF51822 for FOTA uses different pins. -DigitalOut led0( P0_19, 1 ); // BLE Nano Low =On -DigitalOut led1( P0_3, 0 ); // TA Baseboard High=On // DigitalOut rts( RTS_PIN_NUMBER ); DigitalIn cts( CTS_PIN_NUMBER, PullDown ); // We'll use as a mode switch for serial data source. TODO @@ -77,6 +74,11 @@ // Wait to settle. int foo = (wait( 0.1 ), 0); +// Not using "LED" or "LED1" because target NRF51822 for FOTA uses different pins. +DigitalOut led0( P0_19, 1 ); // BLE Nano Low =On +DigitalOut led1( P0_3, 0 ); // TA Baseboard High=On (OK on Nano: Alt RxD) +// DigitalOut led1( (trSwp ? P0_4 : P0_3), 0 ); // TA Baseboard High=On (And don't use P0_4 on Nano) + // App timer, app scheduler, and pstorage are already setup by bootloader. BLEDevice ble;