Example based on UDAKZ example + OWEN EDWARDS example to test nRF24L01P with STM32F103C8T6 board
Dependencies: mbed-STM32F103C8T6 mbed nRF24L01P
Fork of STM32F103C8T6_Hello by
Diff: main.cpp
- Revision:
- 3:c6a589f444b9
- Parent:
- 1:1dd12d8c840d
- Child:
- 4:a81f44fc487e
diff -r 5ebf34d19614 -r c6a589f444b9 main.cpp --- a/main.cpp Sat Jul 02 07:33:59 2016 +0000 +++ b/main.cpp Sat Jul 02 07:51:56 2016 +0000 @@ -5,9 +5,11 @@ int main() { while(1) { - myled = 1; // LED is ON + // The on-board LED is connected to pin PC_13 and, via a resistor, to +3V3. + // So to turn the LED on or off we have to set it to 0 or 1 respectively + myled = 0; // turn the LED on wait(0.2); // 200 ms - myled = 0; // LED is OFF + myled = 1; // turn the LED off wait(1.0); // 1 sec } }