restructure and cleanup
This commit is contained in:
24
node/main/i2c.h
Normal file
24
node/main/i2c.h
Normal file
@ -0,0 +1,24 @@
|
||||
#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_ */
|
Reference in New Issue
Block a user