dd

Dependencies:   xtoff2 RF24Network mbed

Fork of xtoff3 by pieter Berteloot

Revision:
4:7ebc3b421306
Child:
5:14c4e655ccae
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Ontvanger.h	Mon Feb 12 16:50:45 2018 +0000
@@ -0,0 +1,43 @@
+#ifndef Ontvanger_h
+#define Ontvanger_h
+#include "mbed.h"
+#include <RF24Network.h>
+#include <RF24.h>
+
+#define nrf_CE      p9
+#define nrf_CSN     p8
+#define spi_SCK     p7
+#define spi_MOSI    p5
+#define spi_MISO    p6
+
+const uint16_t this_node = 00;
+const uint16_t other_node = 01;
+
+
+struct payload_t 
+{
+    bool reedsensor;
+    int milligram; 
+};
+
+
+
+class Ontvanger
+{
+private:
+
+
+public:
+    Ontvanger();
+    void update();
+    bool available();
+    
+    payload_t read();
+};
+
+#endif
+
+
+
+
+