#363 v3.16 I2C function deutsch
This commit is contained in:
@@ -20,13 +20,13 @@ sudo apt install git
|
|||||||
git clone https://github.com/WiringPi/WiringPi.git
|
git clone https://github.com/WiringPi/WiringPi.git
|
||||||
cd WiringPi
|
cd WiringPi
|
||||||
./build debian
|
./build debian
|
||||||
mv debian-template/wiringpi-3.1x.deb .
|
mv debian-template/wiringpi_3.16_arm64.deb .
|
||||||
```
|
```
|
||||||
|
|
||||||
**Debian-Paket installieren:**
|
**Debian-Paket installieren:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt install ./wiringpi-3.1x.deb
|
sudo apt install ./wiringpi_3.16_arm64.deb
|
||||||
```
|
```
|
||||||
|
|
||||||
**Debian-Paket deinstallieren:**
|
**Debian-Paket deinstallieren:**
|
||||||
@@ -409,7 +409,7 @@ struct WPIWfiStatus wfiStatus waitForInterrupt2(int pin, int edgeMode, int ms, u
|
|||||||
``ms``: Timeout in Milisekunden.
|
``ms``: Timeout in Milisekunden.
|
||||||
- \-1 ... Warten ohne Timeout
|
- \-1 ... Warten ohne Timeout
|
||||||
- 0 ... Wartet nicht
|
- 0 ... Wartet nicht
|
||||||
- 1...n ... Wartet maximal n Millisekunden
|
- 1-n ... Wartet maximal n Millisekunden
|
||||||
|
|
||||||
``debounce_period_us``: Entprellzeit in Microsekunden, 0 schaltet Entprellen ab.
|
``debounce_period_us``: Entprellzeit in Microsekunden, 0 schaltet Entprellen ab.
|
||||||
|
|
||||||
@@ -690,9 +690,21 @@ int fd = wiringPiI2CSetupInterface("/dev/i2c-1", 0x20);
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### wiringPiI2CWrite / wiringPiI2CWriteReg8 / wiringPiI2CWriteReg16 / wiringPiI2CWriteBlockData
|
### wiringPiI2CWrite
|
||||||
|
|
||||||
...
|
Einfaches schreiben auf einen I2C-Slave. Manche Geräte benötigen keine Adressierung eines Registers.
|
||||||
|
|
||||||
|
### wiringPiI2CWriteReg8
|
||||||
|
|
||||||
|
Schreibt 8-Bit Daten auf ein Register am Geräte.
|
||||||
|
|
||||||
|
### wiringPiI2CWriteReg16
|
||||||
|
|
||||||
|
Schreibt 16-Bit Daten auf ein Register am Geräte.
|
||||||
|
|
||||||
|
### wiringPiI2CWriteBlockData
|
||||||
|
|
||||||
|
Schreibt entsprechend der angeben Größe Daten auf ein Register am Geräte.
|
||||||
|
|
||||||
### wiringPiI2CRawWrite
|
### wiringPiI2CRawWrite
|
||||||
|
|
||||||
@@ -725,9 +737,25 @@ if (fd>0) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### wiringPiI2CRead / wiringPiI2CReadReg8 / wiringPiI2CReadReg16 / wiringPiI2CReadBlockData
|
|
||||||
|
|
||||||
...
|
### wiringPiI2CRead
|
||||||
|
|
||||||
|
Einfaches lesen vom I2C-Slave. Manche Geräte benötigen keine Adressierung eines Registers.
|
||||||
|
|
||||||
|
### wiringPiI2CReadReg8
|
||||||
|
|
||||||
|
Liest 8-Bit Daten vom Register am Geräte.
|
||||||
|
|
||||||
|
|
||||||
|
### wiringPiI2CReadReg16
|
||||||
|
|
||||||
|
Liest 16-Bit Daten vom Register am Geräte.
|
||||||
|
|
||||||
|
|
||||||
|
### wiringPiI2CReadBlockData
|
||||||
|
|
||||||
|
Liest entsprechend der angeben Größe Daten vom Register am Geräte.
|
||||||
|
|
||||||
|
|
||||||
### wiringPiI2CRawRead
|
### wiringPiI2CRawRead
|
||||||
|
|
||||||
|
|||||||
@@ -22,13 +22,13 @@ sudo apt install git
|
|||||||
git clone https://github.com/WiringPi/WiringPi.git
|
git clone https://github.com/WiringPi/WiringPi.git
|
||||||
cd WiringPi
|
cd WiringPi
|
||||||
./build debian
|
./build debian
|
||||||
mv debian-template/wiringpi-3.0-1.deb .
|
mv debian-template/wiringpi_3.16_arm64.deb .
|
||||||
```
|
```
|
||||||
|
|
||||||
**Install Debian package:**
|
**Install Debian package:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt install ./wiringpi-3.0-1.deb
|
sudo apt install ./wiringpi_3.16_arm64.deb
|
||||||
```
|
```
|
||||||
|
|
||||||
**Uninstall Debian package:**
|
**Uninstall Debian package:**
|
||||||
@@ -406,7 +406,7 @@ struct WPIWfiStatus wfiStatus waitForInterrupt2(int pin, int edgeMode, int ms, u
|
|||||||
``ms``: Timeout in milliseconds.
|
``ms``: Timeout in milliseconds.
|
||||||
- \-1 ... Wait without timeout
|
- \-1 ... Wait without timeout
|
||||||
- 0 ... No wait
|
- 0 ... No wait
|
||||||
- 1...n ... Waits for a maximum of n milliseconds
|
- 1-n ... Waits for a maximum of n milliseconds
|
||||||
|
|
||||||
``debounce_period_us``: Debounce time in microseconds, 0 disables debouncing.
|
``debounce_period_us``: Debounce time in microseconds, 0 disables debouncing.
|
||||||
|
|
||||||
@@ -687,15 +687,15 @@ Simple device write. Some devices accept data this way without needing to access
|
|||||||
|
|
||||||
### wiringPiI2CWriteReg8
|
### wiringPiI2CWriteReg8
|
||||||
|
|
||||||
Writes a 8-bit data value into the device register indicated.
|
Writes 8-bit data value to the device register.
|
||||||
|
|
||||||
### wiringPiI2CWriteReg16
|
### wiringPiI2CWriteReg16
|
||||||
|
|
||||||
Writes a 16-bit data value into the device register indicated.
|
Writes 16-bit data value to the device register.
|
||||||
|
|
||||||
### wiringPiI2CWriteBlockData
|
### wiringPiI2CWriteBlockData
|
||||||
|
|
||||||
...
|
Writes specified byte data values to the device register.
|
||||||
|
|
||||||
### wiringPiI2CRawWrite
|
### wiringPiI2CRawWrite
|
||||||
|
|
||||||
@@ -730,21 +730,24 @@ else {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### wiringPiI2CRead
|
### wiringPiI2CRead
|
||||||
|
|
||||||
Simple device read. Some devices accept data this way without needing to access any internal registers.
|
|
||||||
|
Simple read from I2C slave. Some devices accept data this way without needing to access any internal registers.
|
||||||
|
|
||||||
### wiringPiI2CReadReg8
|
### wiringPiI2CReadReg8
|
||||||
|
|
||||||
Reads an 8-bit data value into the device register indicated.
|
Reads 8-bit data value from the device register.
|
||||||
|
|
||||||
### wiringPiI2CReadReg16
|
### wiringPiI2CReadReg16
|
||||||
|
|
||||||
Reads an 16-bit data value into the device register indicated.
|
Reads 16-bit data value from the device register.
|
||||||
|
|
||||||
|
|
||||||
### wiringPiI2CReadBlockData
|
### wiringPiI2CReadBlockData
|
||||||
|
|
||||||
...
|
Reads specified byte data values from the device register.
|
||||||
|
|
||||||
### wiringPiI2CRawRead
|
### wiringPiI2CRawRead
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user