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
Verzender.h
- Committer:
- pietor
- Date:
- 2018-02-19
- Revision:
- 6:6a82110ff393
File content as of revision 6:6a82110ff393:
#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
