jkj
Dependencies: BSP_DISCO_L476VG LCD_DISCO_L476VG mbed nRF24L01P
Fork of Final_project_Dom_2TOMS_addChannel12 by
Diff: main.cpp
- Revision:
- 8:bd2b61bbc45e
- Parent:
- 7:fed91776683c
--- a/main.cpp Tue Apr 24 22:11:09 2018 +0000 +++ b/main.cpp Thu Apr 26 20:48:09 2018 +0000 @@ -78,7 +78,14 @@ // add other power settings else { - pc.printf(" invalid number\n\r"); + pc.printf("received valid number\n\r"); + receivedOutputPowerCharacter = receivedOutputPowerCharacter - NRF24L01P_DATARATE_1_MBPS; + rf_OutputPower = rf_OutputPower + receivedOutputPowerCharacter; + pc.printf("new OutputPower, %d\n\r", rf_OutputPower); + my_nrf24l01p.getAirDataRate(); + wait(1); + pc.printf( "nRF24L01+ OutputPower : %d MHz\r\n", my_nrf24l01p.getAirDataRate() ); + stayInWhile = 0; pc.printf(" invalid number\n\r"); } } wait(1);