Skip to content

Commit 681c5f1

Browse files
committed
WiringPi#363 v3.16 I2C function deutsch
1 parent 30cbdf9 commit 681c5f1

File tree

2 files changed

+48
-17
lines changed

2 files changed

+48
-17
lines changed

documentation/deutsch/functions.md

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ sudo apt install git
2020
git clone https://github.com/WiringPi/WiringPi.git
2121
cd WiringPi
2222
./build debian
23-
mv debian-template/wiringpi-3.1x.deb .
23+
mv debian-template/wiringpi_3.16_arm64.deb .
2424
```
2525

2626
**Debian-Paket installieren:**
2727

2828
```bash
29-
sudo apt install ./wiringpi-3.1x.deb
29+
sudo apt install ./wiringpi_3.16_arm64.deb
3030
```
3131

3232
**Debian-Paket deinstallieren:**
@@ -409,7 +409,7 @@ struct WPIWfiStatus wfiStatus waitForInterrupt2(int pin, int edgeMode, int ms, u
409409
``ms``: Timeout in Milisekunden.
410410
- \-1 ... Warten ohne Timeout
411411
- 0 ... Wartet nicht
412-
- 1...n ... Wartet maximal n Millisekunden
412+
- 1-n ... Wartet maximal n Millisekunden
413413
414414
``debounce_period_us``: Entprellzeit in Microsekunden, 0 schaltet Entprellen ab.
415415
@@ -690,9 +690,21 @@ int fd = wiringPiI2CSetupInterface("/dev/i2c-1", 0x20);
690690
```
691691

692692

693-
### wiringPiI2CWrite / wiringPiI2CWriteReg8 / wiringPiI2CWriteReg16 / wiringPiI2CWriteBlockData
693+
### wiringPiI2CWrite
694694

695-
...
695+
Einfaches schreiben auf einen I2C-Slave. Manche Geräte benötigen keine Adressierung eines Registers.
696+
697+
### wiringPiI2CWriteReg8
698+
699+
Schreibt 8-Bit Daten auf ein Register am Geräte.
700+
701+
### wiringPiI2CWriteReg16
702+
703+
Schreibt 16-Bit Daten auf ein Register am Geräte.
704+
705+
### wiringPiI2CWriteBlockData
706+
707+
Schreibt entsprechend der angeben Größe Daten auf ein Register am Geräte.
696708

697709
### wiringPiI2CRawWrite
698710

@@ -725,9 +737,25 @@ if (fd>0) {
725737
}
726738
```
727739

728-
### wiringPiI2CRead / wiringPiI2CReadReg8 / wiringPiI2CReadReg16 / wiringPiI2CReadBlockData
729740

730-
...
741+
### wiringPiI2CRead
742+
743+
Einfaches lesen vom I2C-Slave. Manche Geräte benötigen keine Adressierung eines Registers.
744+
745+
### wiringPiI2CReadReg8
746+
747+
Liest 8-Bit Daten vom Register am Geräte.
748+
749+
750+
### wiringPiI2CReadReg16
751+
752+
Liest 16-Bit Daten vom Register am Geräte.
753+
754+
755+
### wiringPiI2CReadBlockData
756+
757+
Liest entsprechend der angeben Größe Daten vom Register am Geräte.
758+
731759

732760
### wiringPiI2CRawRead
733761

documentation/english/functions.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ sudo apt install git
2222
git clone https://github.com/WiringPi/WiringPi.git
2323
cd WiringPi
2424
./build debian
25-
mv debian-template/wiringpi-3.0-1.deb .
25+
mv debian-template/wiringpi_3.16_arm64.deb .
2626
```
2727

2828
**Install Debian package:**
2929

3030
```bash
31-
sudo apt install ./wiringpi-3.0-1.deb
31+
sudo apt install ./wiringpi_3.16_arm64.deb
3232
```
3333

3434
**Uninstall Debian package:**
@@ -406,7 +406,7 @@ struct WPIWfiStatus wfiStatus waitForInterrupt2(int pin, int edgeMode, int ms, u
406406
``ms``: Timeout in milliseconds.
407407
- \-1 ... Wait without timeout
408408
- 0 ... No wait
409-
- 1...n ... Waits for a maximum of n milliseconds
409+
- 1-n ... Waits for a maximum of n milliseconds
410410
411411
``debounce_period_us``: Debounce time in microseconds, 0 disables debouncing.
412412
@@ -687,15 +687,15 @@ Simple device write. Some devices accept data this way without needing to access
687687

688688
### wiringPiI2CWriteReg8
689689

690-
Writes a 8-bit data value into the device register indicated.
690+
Writes 8-bit data value to the device register.
691691

692692
### wiringPiI2CWriteReg16
693693

694-
Writes a 16-bit data value into the device register indicated.
694+
Writes 16-bit data value to the device register.
695695

696696
### wiringPiI2CWriteBlockData
697697

698-
...
698+
Writes specified byte data values to the device register.
699699

700700
### wiringPiI2CRawWrite
701701

@@ -730,21 +730,24 @@ else {
730730
}
731731
```
732732

733+
733734
### wiringPiI2CRead
734735

735-
Simple device read. Some devices accept data this way without needing to access any internal registers.
736+
737+
Simple read from I2C slave. Some devices accept data this way without needing to access any internal registers.
736738

737739
### wiringPiI2CReadReg8
738740

739-
Reads an 8-bit data value into the device register indicated.
741+
Reads 8-bit data value from the device register.
740742

741743
### wiringPiI2CReadReg16
742744

743-
Reads an 16-bit data value into the device register indicated.
745+
Reads 16-bit data value from the device register.
746+
744747

745748
### wiringPiI2CReadBlockData
746749

747-
...
750+
Reads specified byte data values from the device register.
748751

749752
### wiringPiI2CRawRead
750753

0 commit comments

Comments
 (0)