![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test program for RFM69 library. Sends time,temperature and RSSI to "RFM69_listener"
Revision 3:450e37e0ffd6, committed 2015-02-26
- Comitter:
- br549
- Date:
- Thu Feb 26 14:49:35 2015 +0000
- Parent:
- 2:2143c1d1f460
- Commit message:
- Add Compile check for various Mbeds
Changed in this revision
Sender.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2143c1d1f460 -r 450e37e0ffd6 Sender.cpp --- a/Sender.cpp Thu Feb 26 14:44:13 2015 +0000 +++ b/Sender.cpp Thu Feb 26 14:49:35 2015 +0000 @@ -28,22 +28,25 @@ #define MSGBUFSIZE 64 // message buffersize, but for this demo we only use: // 1-byte NODEID + 4-bytes for time + 1-byte for temp in C + 2-bytes for vcc(mV) char msgBuf[MSGBUFSIZE]; -DigitalOut myled(LED1); // LED on the RFM69 breakout is wired to D9 #ifdef TARGET_NUCLEO_F401RE Serial pc(USBTX, USBRX); +DigitalOut myled(D9); //"Moteino Half Shield" has LED on D9 //RFM69::RFM69(PinName PinName mosi, PinName miso, PinName sclk,slaveSelectPin, PinName int) RFM69 radio(D11,D12,D13,D10,D8); #elif defined(TARGET_NUCLEO_L152RE) Serial pc(USBTX, USBRX); +DigitalOut myled(D9); //"Moteino Half Shield" has LED on D9 //RFM69::RFM69(PinName PinName mosi, PinName miso, PinName sclk,slaveSelectPin, PinName int) RFM69 radio(D11,D12,D13,D10,D8); #elif defined(TARGET_LPC1114) Serial pc(USBTX, USBRX); +DigitalOut myled(LED1); //RFM69::RFM69(PinName PinName mosi, PinName miso, PinName sclk,slaveSelectPin, PinName int) RFM69 radio(dp2,dp1,dp6,dp4,dp9); #elif defined(TARGET_LPC1768) Serial pc(USBTX, USBRX); +DigitalOut myled(D9); //"Moteino Half Shield" has LED on D9 //RFM69::RFM69(PinName PinName mosi, PinName miso, PinName sclk,slaveSelectPin, PinName int) RFM69 radio(D11,D12,D13,D10,D8); // Seeedstudio Arch Pro //RFM69 radio(p5, p6, p7, p10, p9,p8) // Mbed 1768 ?