You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reads a pulse (either HIGH or LOW) on a pin. For example, if *value* is *HIGH*, `pulseIn()` waits for the pin to go *HIGH*, starts timing, then waits for the pin to go *LOW* and stops timing. Returns the length of the pulse in microseconds. Gives up and returns 0 if no pulse starts within a specified time out.
19
+
=== Beschreibung
20
+
Liest einen Stromwert von einem Pin ein (entweder HIGH oder LOW). Wenn der *Wert* z.B. *HIGH* ist, wartet `pulseIn()` darauf, dass der Pin auf den Wert *HIGH* wechselt, startet einen Timer und wartet anschließend darauf, dass der Pin wieder auf *LOW* wechselt. Daraufhin stoppt `pulseIn()` den Timer. Gibt die Länge des Stromstoßes in Mikrosekunden zurück. Stoppt und gibt 0 zurück, wenn ein bestimmter Timeout erreicht wird.
21
21
22
-
The timing of this function has been determined empirically and will probably show errors in longer pulses. Works on pulses from 10 microseconds to 3 minutes in length.
22
+
Das Timing der Funktion wurde empirisch getestet und wird vermutlich bei längeren Stromstößen Fehler werfen. Die Funktion funtioniert mit einer Stromstößen der Länge von 10 Mikrosekunden bis 3 Minuten.
23
23
[%hardbreaks]
24
24
25
25
@@ -30,15 +30,16 @@ The timing of this function has been determined empirically and will probably sh
30
30
`pulseIn(pin, value, timeout)`
31
31
32
32
[float]
33
-
=== Parameters
34
-
`pin`: the number of the pin on which you want to read the pulse. (int)
33
+
=== Parameter
34
+
`pin`: Die Pinnummer, an der der Stromstoß gelesen werden soll. (int)
35
35
36
-
`value`: type of pulse to read: either link:../../../variables/constants/constants/[HIGH] or link:../../../variables/constants/constants/[LOW]. (int)
36
+
`value`: Welche Art von Stromstoß gelesen werden soll: Entweder link:../../../variables/constants/constants/[HIGH] oder link:../../../variables/constants/constants/[LOW]. (int)
37
37
38
-
`timeout` (optional): the number of microseconds to wait for the pulse to start; default is one second (unsigned long)
38
+
`timeout` (optional): Die Anzahl an Mikrosekunden, die gewartet werden soll, bis ein Stromstoß gemessen wurde; Default-Wert ist eine Sekunde (unsigned long)
39
39
[float]
40
-
=== Returns
41
-
the length of the pulse (in microseconds) or 0 if no pulse started before the timeout (unsigned long)
40
+
41
+
=== Gibt zurück
42
+
Die Länge des Stromstoßes (in Mikrosekunden) oder 0, wenn kein Stromstoß vor dem Timeout gemessen wird (unsigned long)
42
43
43
44
--
44
45
// OVERVIEW SECTION ENDS
@@ -51,9 +52,9 @@ the length of the pulse (in microseconds) or 0 if no pulse started before the ti
51
52
--
52
53
53
54
[float]
54
-
=== Example Code
55
+
=== Beispielcode
55
56
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
56
-
The example calculated the time duration of a pulse on pin 7.
57
+
Das Beispiel errechnet den Zeitraum eines Stromstoßes auf Pin 7.
0 commit comments