The field version of the solarnano grid on the ionQubes
Fork of SolarNanoGridv3 by
Diff: SolarNanoGrid.h
- Revision:
- 1:df924e0126d1
- Parent:
- 0:dc8a45ec969a
- Child:
- 2:929cf7fc6998
--- a/SolarNanoGrid.h Thu May 05 13:44:24 2016 +0000 +++ b/SolarNanoGrid.h Fri May 06 14:56:20 2016 +0000 @@ -4,10 +4,58 @@ #ifndef SOLARNANOGRID_H #define SOLARNANOGRID_H - +#include "mbed.h" +#include "NRF2401P.h" +#include "SDFileSystem.h" #include "battery.h" #include "locker.h" +class SolarNanoGrid +{ + public: + // ********************* + // * Public variables: * + // ********************* + + // Wireless module: + NRF2401P* nrf1; + InterruptIn* nrf1Int; // IRQ of nRF24 + battery* SongBat; + + + char role; + int sdVersion; + int id; + + // ********************* + // * Public functions: * + // ********************* + + // Constructor: + SolarNanoGrid(SDFileSystem* sd); + + // Main loop function: + void loop(void); + + // spi pin assignments: + void spiNrf(void); + void spiSD(void); + + + + + private: + // ********************** + // * Private variables: * + // ********************** + + // Pointer to sd filesystem: + SDFileSystem* _sd; + + + + +}; #endif /* SOLARNANOGRID_H */ \ No newline at end of file