I-O DATA DEV2
/
commu4
トランシーバー練習プログラム。その受信用です。 stm32_hello_nrf24をベースにしています。
Revision 2:66a69d5a93b6, committed 2020-11-28
- Comitter:
- hakusan270
- Date:
- Sat Nov 28 13:59:03 2020 +0000
- Parent:
- 1:ad4cb1ad3519
- Commit message:
- fix reset issue
Changed in this revision
main4.cpp | Show annotated file Show diff for this revision Revisions of this file |
nRF24L01P.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main4.cpp Sat Nov 28 07:13:18 2020 +0000 +++ b/main4.cpp Sat Nov 28 13:59:03 2020 +0000 @@ -47,17 +47,14 @@ pc.printf( "Type keys to test transfers:\r\n (transfers are grouped into %d characters)\r\n", TRANSFER_SIZE ); my_nrf24l01p.setTransferSize( TRANSFER_SIZE * sizeof( uint16_t ) );//mAX 32 - my_nrf24l01p.enable(); - my_nrf24l01p.setReceiveMode(); my_nrf24l01p.enable(); - rxDataCnt = my_nrf24l01p.read( NRF24L01P_PIPE_P0, (char*)(rxData+bufferidx),TRANSFER_SIZE * sizeof( uint16_t ) ); wait_ms(100); // my_nrf24l01p.write( NRF24L01P_PIPE_P0, (char*)rxData,1);//dummy interrput.attach_us(&timer, 100);//100 usec 10Khz - + // my_nrf24l01p.flush_rx_fifo(); while (1) { // If we've received anything in the nRF24L01+... if ( my_nrf24l01p.readable(NRF24L01P_PIPE_P0) ) { //受信?
--- a/nRF24L01P.lib Sat Nov 28 07:13:18 2020 +0000 +++ b/nRF24L01P.lib Sat Nov 28 13:59:03 2020 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/teams/I-O-DATA-DEV2/code/nRF24L01P/#7606e50461e1 +https://os.mbed.com/teams/I-O-DATA-DEV2/code/nRF24L01P/#d3349b4b6496