Dominik Wieser
/
RFM12Master
main.cpp
- Committer:
- dominik
- Date:
- 2011-02-18
- Revision:
- 0:39f298c7b95a
File content as of revision 0:39f298c7b95a:
#include "mbed.h" #include "rfm12.h" //irq, sel, sdi, sdo, sck RFM12 rf(p9, p10, p11, p12, p13); int main() { int i; char b[5]; for(i = 0; i < 5; i++) { b[i] = 0x00 + i; } header h; h.Bit.Addresse = 0x01; h.Bit.DestType = 1; h.Bit.Port = 1; for(;;) { //rf.RF_L4_Senden(b, h, 5); wait(1); } }