Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: xtoff2 RF24Network mbed
Fork of xtoff3 by
Diff: Verzender.h
- Revision:
- 6:6a82110ff393
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Verzender.h Mon Feb 19 14:44:11 2018 +0000
@@ -0,0 +1,40 @@
+#ifndef Verzender_h
+#define Verzender_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_node2 = 11;
+const uint16_t other_node2 = 10;
+
+const unsigned long interval = 100; //ms
+
+
+struct payload_t {
+ bool reedsensor;
+ float milligram;
+};
+
+class Verzender
+{
+private:
+
+
+public:
+ Verzender();
+ void update();
+ bool write(payload_t message);
+};
+
+#endif
+
+
+
+
+
