diff options
Diffstat (limited to 'i2c.h')
-rw-r--r-- | i2c.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#ifndef I2C_H +#define I2C_H + +#include <stdint.h> + +class I2C { + public: + void enable(); + + void write_reg(uint8_t addr, uint8_t reg, uint8_t data); + void read_reg(uint8_t addr, uint8_t reg, uint8_t len, uint8_t* buf); +}; + + + +#endif |