Library to send and receive data using RF12B transceiver modules Big thanks to the tutorial at https://loee.jottit.com/rfm12b_and_avr_-_quick_start and madcowswe

Dependents:   Measure_system Quadcopter_copy

Revision:
3:e72ad65868ab
Parent:
2:99cf337cd23e
Child:
4:2a295db9ba1a
--- a/RF12B.h	Thu Mar 10 12:48:08 2011 +0000
+++ b/RF12B.h	Thu Mar 10 13:14:48 2011 +0000
@@ -16,7 +16,7 @@
     unsigned char read();
 
     /* Sends a byte of data to the RF module for transmission */
-    void write(unsigned char * data);
+    void write(unsigned char * data, unsigned int length);
 
     /* Flushes all data from the RF module's buffer */
     void flush();
@@ -27,12 +27,12 @@
     DigitalIn NIRQ;
     bool trans;
     bool initialized;
-    
+
     unsigned int writeCmd(unsigned int cmd);
     void send(unsigned char data);
     /* Initialises the RF12B module */
-    void init(); 
-    /* Switch module between receive and transmit modes */ 
+    void init();
+    /* Switch module between receive and transmit modes */
     void mode(bool trans);
 };