Skip to content

Commit dc8ffb5

Browse files
committed
Extend IOChecker with I2C sensor detection
1 parent 73bd411 commit dc8ffb5

File tree

4 files changed

+39
-3
lines changed

4 files changed

+39
-3
lines changed

content/documentation/io-types/i2c/_index.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,32 @@ Results from I2C Detection
103103

104104
i2cdetect -y 1
105105
Status: PASS
106-
Expected:
106+
Expected:
107107
One or more I2C used addresses detected on bus 1
108-
Result:
109-
Found 3 used addres(ses) on bus 1: 0x21, 0x5C, 0x70
108+
Result:
109+
Found 2 used addres(ses) on bus 1: 0x27, 0x77
110+
111+
Pi4J Drivers SensorDetector on bus 1
112+
Status: PASS
113+
Expected:
114+
One or more I2C sensors on bus 1 were recognized by the Pi4J Drivers library
115+
Result:
116+
Bmx280Driver
117+
- Addresses: 0x76, 0x77
118+
- TEMPERATURE: 19.106588
119+
- PRESSURE: 97226.89
120+
- HUMIDITY: 71.65199
110121

111122
i2cdetect -y 13
112123
... # Truncated for brevity
113124
```
114125
126+
If you have used the IOChecker before and want to make sure you are using the latest version, you need to clear the JBang cache:
127+
128+
```shell
129+
$ jbang cache clear
130+
```
131+
115132
## Transfer rates
116133
117134
| Mode | Max. transfer rate | Direction |

content/documentation/io-types/pwm.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ Results from PWM Detection
104104
45: op dh pd | hi // FAN_PWM/GPIO45 = output
105105
```
106106
107+
If you have used the IOChecker before and want to make sure you are using the latest version, you need to clear the JBang cache:
108+
109+
```shell
110+
$ jbang cache clear
111+
```
112+
107113
## Linuxfs Provider (linuxfs-pwm)
108114
109115
As of version 2.6.0 of Pi4J, `linuxfs-pwm` also supports hardware PWM on the Raspberry Pi 5. More information and an example implementation is available in the blog post [PWM Hardware Support on Raspberry Pi5](/blog/2024/20240423_pwm_rpi5/).

content/documentation/io-types/serial.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ You can check the Serial configuration of your Raspberry Pi with the following c
7777

7878
```shell
7979
$ jbang https://github.com/pi4j/pi4j-os/blob/main/iochecks/IOChecker.java serial
80+
8081
[jbang] Building jar for IOChecker.java...
8182
Results from Serial Detection
8283

@@ -98,6 +99,12 @@ Results from Serial Detection
9899
/dev/ttyACM0 not available
99100
```
100101
102+
If you have used the IOChecker before and want to make sure you are using the latest version, you need to clear the JBang cache:
103+
104+
```shell
105+
$ jbang cache clear
106+
```
107+
101108
## Code example
102109
103110
The following example demonstrates how you can connect to a GPS module to read the data. This example is based on an

content/documentation/io-types/spi.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ Results from SPI Detection
100100
spi0.0 spi0.1 spi10.0
101101
```
102102
103+
If you have used the IOChecker before and want to make sure you are using the latest version, you need to clear the JBang cache:
104+
105+
```shell
106+
$ jbang cache clear
107+
```
108+
103109
## Additional Information
104110
105111
- [Wikipedia SPI](https://en.wikipedia.org/wiki/Serial_Peripheral_Interface)

0 commit comments

Comments
 (0)