mirror of
https://github.com/nopnop2002/esp-idf-ssd1306.git
synced 2024-10-03 18:18:47 -04:00
Update README.md
This commit is contained in:
parent
6890cb094e
commit
2e5d25cd91
@ -51,7 +51,7 @@ No other code is required to use i2c.
|
|||||||
```
|
```
|
||||||
|
|
||||||
This project uses the following functions to install the i2c driver.
|
This project uses the following functions to install the i2c driver.
|
||||||
This function determines which i2c port to use inside the function.
|
This function determines which I2C port to use within the function according to the config value.
|
||||||
```
|
```
|
||||||
i2c_master_init(&dev, CONFIG_SDA_GPIO, CONFIG_SCL_GPIO, CONFIG_RESET_GPIO);
|
i2c_master_init(&dev, CONFIG_SDA_GPIO, CONFIG_SCL_GPIO, CONFIG_RESET_GPIO);
|
||||||
```
|
```
|
||||||
@ -122,7 +122,7 @@ We need to run this code on the second device.
|
|||||||
```
|
```
|
||||||
|
|
||||||
This project uses the following functions to install the i2c driver.
|
This project uses the following functions to install the i2c driver.
|
||||||
This function determines which i2c port to use inside the function.
|
This function determines which I2C port to use within the function according to the config value.
|
||||||
```
|
```
|
||||||
i2c_master_init(&dev, CONFIG_SDA_GPIO, CONFIG_SCL_GPIO, CONFIG_RESET_GPIO);
|
i2c_master_init(&dev, CONFIG_SDA_GPIO, CONFIG_SCL_GPIO, CONFIG_RESET_GPIO);
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user