The field version of the solarnano grid on the ionQubes
Fork of SolarNanoGridv3 by
SolarNanoGrid.h
- Committer:
- defrost
- Date:
- 2016-05-09
- Revision:
- 2:929cf7fc6998
- Parent:
- 1:df924e0126d1
- Child:
- 5:57b06b4b47c6
File content as of revision 2:929cf7fc6998:
/** * All the code associated to run the mbed as a battery */ #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; locker* SongLock; InterruptIn* button; char role; int sdVersion; int id; // ********************* // * Public functions: * // ********************* // Constructor: SolarNanoGrid(SDFileSystem* sd, DigitalOut* led_1, DigitalOut* led_2); // 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 */