diff options
Diffstat (limited to 'src/i2c.h')
-rw-r--r-- | src/i2c.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/i2c.h b/src/i2c.h new file mode 100644 index 0000000..818db23 --- /dev/null +++ b/src/i2c.h @@ -0,0 +1,14 @@ +#include <avr/io.h> +#include <avr/interrupt.h> +#include <stdlib.h> + +#define I2C_EEPROM_ADDR 0x50 + +class I2C { + public: + I2C() {}; + void enable(); + void xmit(int num_tx, int num_rx, uint8_t *txbuf, uint8_t *rxbuf); +}; + +extern I2C i2c; |