24 lines
306 B
C++
24 lines
306 B
C++
#ifndef _I2C_H_
|
|
#define _I2C_H_
|
|
|
|
#define I2C_SDA_PIN GPIO_NUM_4
|
|
#define I2C_SCL_PIN GPIO_NUM_15
|
|
|
|
#define I2C_NUM I2C_NUM_0
|
|
//#define I2C_NUM I2C_NUM
|
|
|
|
#define I2C_MASTER_FREQ_HZ 400000U /*!< I2C clock of SSD1306 can run at 400 kHz max. */
|
|
|
|
|
|
class I2C_Driver
|
|
{
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
void i2c_init();
|
|
|
|
|
|
#endif /* _I2C_H_ */ |