|
@ -10,14 +10,6 @@ Copyright (C) 2017-2019 by Xose Pérez <xose dot perez at gmail dot com> |
|
|
|
|
|
|
|
|
#include "espurna.h" |
|
|
#include "espurna.h" |
|
|
|
|
|
|
|
|
#if I2C_SUPPORT |
|
|
|
|
|
|
|
|
|
|
|
#if I2C_USE_BRZO |
|
|
|
|
|
#include <brzo_i2c.h> |
|
|
|
|
|
#else |
|
|
|
|
|
#include <Wire.h> |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
void i2c_wakeup(uint8_t address); |
|
|
void i2c_wakeup(uint8_t address); |
|
|
uint8_t i2c_write_buffer(uint8_t address, uint8_t * buffer, size_t len); |
|
|
uint8_t i2c_write_buffer(uint8_t address, uint8_t * buffer, size_t len); |
|
|
uint8_t i2c_write_uint8(uint8_t address, uint8_t value); |
|
|
uint8_t i2c_write_uint8(uint8_t address, uint8_t value); |
|
@ -44,5 +36,3 @@ unsigned char i2cFind(size_t size, unsigned char * addresses, unsigned char &sta |
|
|
unsigned char i2cFind(size_t size, unsigned char * addresses); |
|
|
unsigned char i2cFind(size_t size, unsigned char * addresses); |
|
|
|
|
|
|
|
|
void i2cSetup(); |
|
|
void i2cSetup(); |
|
|
|
|
|
|
|
|
#endif // I2C_SUPPORT == 1 |
|
|
|