alpha_datapool
Diff: AlphaTransporter.h
- Revision:
- 0:2c82568e1790
- Child:
- 1:51a5a9f66f61
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AlphaTransporter.h Wed Aug 30 05:14:05 2017 +0000 @@ -0,0 +1,44 @@ +#ifndef SDA +#define SDA PB_7 +#endif + +#ifndef SCL +#define SCL PB_6 +#endif + +#ifndef SCL +#define SCL PB_6 +#endif + +#ifndef JUSHINKUN_ADDR +#define JUSHINKUN_ADDR 0x12 +#endif + +#ifndef APPER_BODY_ADDR +#define APPER_BODY_ADDR 0x0b +#endif + +#ifndef ALPHA_TRANSPORTER_H +#define ALPHA_TRANSPORTER_H + +#include "DataPool.h" +#include "AlphaPool.h" +#include "I2CTransporter.h" + +class AlphaTransporter : public DataPool +{ + public: + AlphaTransporter(); + + virtual bool set(); + virtual void write(int index_num, int data); + virtual int read(int index_num); + virtual void reset(); + + AlphaPool pool; + + private: + I2CTransporter i2c; +}; + +#endif \ No newline at end of file