eren-terzioglu opened a new pull request, #14591:
URL: https://github.com/apache/nuttx/pull/14591
## Summary
Bitbang device supports are added due to flexibility on device testing and
other use cases especially the devices which has one related peripheral (e.g.
There is one SPI peripheral for C3 or there is one I2C peripheral for C6). This
feature adds another interface for related peripheral in cases of when number
of peripherals are not enough.
- esp32[c3|c6|h2]: Add I2C bitbang supoort
- esp32[s2|s3]: Add I2C bitbang supoort
## Impact
ESP32, ESP32S2, ESP32S3, ESP32C3, ESP32C6, ESP32H2
## Testing
Configurations used with `ESPRESSIF_I2C_BITBANG=y` and
`CONFIG_I2CTOOL_MAXBUS=4`, `ESP32S3_I2C0=n`, `ESP32S3_I2C1=n`, ... options
additionally:
```
esp32c3-generic:bmp180
esp32c6-devkitc:bmp180
esp32h2-devkit:bmp180
esp32s3-devkit:i2c
```
BMP180 sensor connected (GPIO0 - SCL, GPIO1 - SDA as default) and these
command applied:
```
nsh> i2c dev -b 3 0x70 0x7f
NOTE: Some devices may not appear with this scan.
You may also try a scan with the -z flag to discover more devices using a
zero-byte write request.
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30:
40:
50:
60:
70: -- -- -- -- -- -- -- 77 -- -- -- -- -- -- -- --
nsh> bmp180
Pressure value = 100405
Pressure value = 100395
Pressure value = 100399
Pressure value = 100399
Pressure value = 100394
Pressure value = 100398
...
```
Additionally, output checked with a logic analyzer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]