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
Copy file name to clipboardExpand all lines: Language/Functions/Advanced IO/noTone.adoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Nichts
45
45
46
46
[float]
47
47
=== Anmerkungen und Warnungen
48
-
Wenn du mehrere Töne auf mehreren Pins abspielen willst, musst du `noTone()` auf einem Pin aufrufen, bevor du `tone()` auf dem nächsten Pin aufrufen kannst.
48
+
Wenn du verschiedene Töne auf mehreren Pins spielen willst, musst du zunächst mit `noTone()` auf einem Pin den Ton stoppen und anschließend mit `tone()` auf dem nächsten Pin einen neuen Ton generieren.
Copy file name to clipboardExpand all lines: Language/Functions/Advanced IO/pulseIn.adoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Das Timing der Funktion wurde empirisch getestet und wird vermutlich bei länger
33
33
=== Parameter
34
34
`pin`: Die Pinnummer, an der der Stromstoß gelesen werden soll. (int)
35
35
36
-
`value`: Welche Art von Stromstoß gelesen werden soll: Entweder link:../../../variables/constants/constants/[HIGH] oder link:../../../variables/constants/constants/[LOW]. (int)
36
+
`value`: Welche Art von Stromstoß gelesen werden soll: Entweder link:../../Variables/Constants/constants.adoc[HIGH] oder link:../../Variables/Constants/constants.adoc[LOW]. (int)
37
37
38
38
`timeout` (optional): Die Anzahl an Mikrosekunden, die gewartet werden soll, bis ein Stromstoß gemessen wurde; Default-Wert ist eine Sekunde (unsigned long)
Reads a pulse (either HIGH or LOW) on a pin. For example, if value is HIGH, `pulseInLong()` 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 or 0 if no complete pulse was received within the timeout.
19
+
=== Beschreibung
20
+
Liest einen Stromwert von einem Pin ein (entweder HIGH oder LOW). Wenn der *Wert* z.B. *HIGH* ist, wartet `pulseInLong()` 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 `pulseInLong()` 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 shorter pulses. Works on pulses from 10 microseconds to 3 minutes in length. Please also note that if the pin is already high when the function is called, it will wait for the pin to go LOW and then HIGH before it starts counting. This routine can be used only if interrupts are activated. Furthermore the highest resolution is obtained with large intervals.
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. Bitte beachte auch, dass, wenn ein Pin, der bereits *HIGH* ist, wenn die Funktion aufgerufen wird, zunächst auf *LOW* und dann wieder auf *HIGH* wechselt, bevor die Funktion startet. Diese Routine kann nur benutzt werden, wenn Interrupts aktiviert werden. Die beste Auflösung wird erreicht, wenn große Intervalle verwendet werden.
23
23
[%hardbreaks]
24
24
25
25
@@ -30,15 +30,15 @@ The timing of this function has been determined empirically and will probably sh
30
30
`pulseInLong(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.adoc[HIGH] oder link:../../Variables/Constants/constants.adoc[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
+
=== Gibt zurück
41
+
Die Länge des Stromstoßes (in Mikrosekunden) oder 0, wenn kein Stromstoß vor dem Timeout gemessen wird (unsigned long)
42
42
43
43
--
44
44
// OVERVIEW SECTION ENDS
@@ -51,9 +51,9 @@ the length of the pulse (in microseconds) or 0 if no pulse started before the ti
51
51
--
52
52
53
53
[float]
54
-
=== Example Code
54
+
=== Beispielcode
55
55
// 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.
56
+
Das Beispiel errechnet den Zeitraum eines Stromstoßes auf Pin 7.
57
57
58
58
[source,arduino]
59
59
----
@@ -71,8 +71,8 @@ void loop() {
71
71
[%hardbreaks]
72
72
73
73
[float]
74
-
=== Notes and Warnings
75
-
This function relies on micros() so cannot be used in link:../../interrupts/nointerrupts[noInterrupts()] context.
74
+
=== Anmerkungen und Warnungen
75
+
Diese Funktion verlässt sich auf `micros()` und kann somit in link:../Interrupts/noInterrupts.adoc[noInterrupts()] Kontexten nicht verwendet werden.
Shifts in a byte of data one bit at a time. Starts from either the most (i.e. the leftmost) or least (rightmost) significant bit. For each bit, the clock pin is pulled high, the next bit is read from the data line, and then the clock pin is taken low.
19
+
=== Beschreibung
20
+
Shiftet ein Byte von Daten, ein Bit pro Zeiteinheit. Beginnt entweder mit dem most significant bit (linkestes Bit) oder dem least significant bit (rechtestes Bit). Für jedes Bit wird der clock pin *HIGH* geschalten.
21
+
Anschließend wird das nächste Bit gelesen und der clock pin auf *LOW* gesetzt.
21
22
22
-
If you're interfacing with a device that's clocked by rising edges, you'll need to make sure that the clock pin is low before the first call to `shiftIn()`, e.g. with a call to `digitalWrite(clockPin, LOW)`.
23
+
Wenn du mit einem Gerät arbeitest, das bei steigender Flanke die clock auslöst, musst du darauf achten, dass der clock pin *LOW* ist, bevor das erste Mal `shiftIn()` aufgerufen wird. Das ist z.B. möglich mit einem
24
+
Aufruf von `digitalWrite(clockPin, LOW)`.
23
25
24
-
Note: this is a software implementation; Arduino also provides an link:https://www.arduino.cc/en/Reference/SPI[SPI library] that uses the hardware implementation, which is faster but only works on specific pins.
26
+
Bemerkung: Das ist eine Softwareimplementierung; Arduino bietet auch eine link:https://www.arduino.cc/en/Reference/SPI[SPI-Bibliothek] an, die eine Hardwareimplementierung benutzt. Diese ist zwar schneller, funktioniert
27
+
aber nur mit spezifischen Pins.
25
28
[%hardbreaks]
26
29
27
30
@@ -31,17 +34,17 @@ Note: this is a software implementation; Arduino also provides an link:https://w
31
34
32
35
33
36
[float]
34
-
=== Parameters
35
-
`dataPin`: the pin on which to input each bit (int)
37
+
=== Parameter
38
+
`dataPin`: Der Pin, auf dem jedes Bit eingegeben wird (int)
36
39
37
-
`clockPin`: the pin to toggle to signal a read from *dataPin*
40
+
`clockPin`: Der Pin, auf dem das Signal gesetzt wird, um den *dataPin* zu lesen
38
41
39
-
`bitOrder`: which order to shift in the bits; either *MSBFIRST* or *LSBFIRST*.
40
-
(Most Significant Bit First, or, Least Significant Bit First)
42
+
`bitOrder`: Welche Ordnung verwendet werden soll, um zu shiften. Entweder ist dies *MSBFIRST* oder *LSBFIRST*.
43
+
(Most Significant Bit First oder Least Significant Bit First)
Shifts out a byte of data one bit at a time. Starts from either the most (i.e. the leftmost) or least (rightmost) significant bit. Each bit is written in turn to a data pin, after which a clock pin is pulsed (taken high, then low) to indicate that the bit is available.
15
+
=== Beschreibung
16
+
Shiftet ein Byte von Daten hinaus, ein Bit pro Zeiteinheit. Beginnt entweder mit dem most significant bit (linkestes Bit) oder dem least significant bit (rechtestes Bit). Für jedes Bit wird der clock pin *HIGH* geschalten.
17
+
Anschließend wird das nächste Bit gelesen und der clock pin auf *LOW* gesetzt.
17
18
18
-
Note- if you're interfacing with a device that's clocked by rising edges, you'll need to make sure that the clock pin is low before the call to `shiftOut()`, e.g. with a call to `digitalWrite(clockPin, LOW)`.
19
+
Wenn du mit einem Gerät arbeitest, das bei steigender Flanke die clock auslöst, musst du darauf achten, dass der clock pin *LOW* ist, bevor das erste Mal `shiftIn()` aufgerufen wird. Das ist z.B. möglich mit einem
20
+
Aufruf von `digitalWrite(clockPin, LOW)`.
19
21
20
-
This is a software implementation; see also the linkhttps://www.arduino.cc/en/Reference/SPI[SPI library], which provides a hardware implementation that is faster but works only on specific pins.
22
+
Bemerkung: Das ist eine Softwareimplementierung; Arduino bietet auch eine link:https://www.arduino.cc/en/Reference/SPI[SPI-Bibliothek] an, die eine Hardwareimplementierung benutzt. Diese ist zwar schneller, funktioniert
23
+
aber nur mit spezifischen Pins.
21
24
[%hardbreaks]
22
25
23
26
@@ -27,19 +30,19 @@ This is a software implementation; see also the linkhttps://www.arduino.cc/en/Re
27
30
28
31
29
32
[float]
30
-
=== Parameters
31
-
`dataPin`: the pin on which to output each bit (int)
33
+
=== Parameter
34
+
`dataPin`: Der Pin, auf dem jedes Bit ausgegeben wird (int)
32
35
33
-
`clockPin`: the pin to toggle once the dataPin has been set to the correct value (int)
36
+
`clockPin`: Der Pin, auf dem das Signal gesetzt wird, um den *dataPin* zu lesen (int)
34
37
35
-
`bitOrder`: which order to shift out the bits; either MSBFIRST or LSBFIRST.
36
-
(Most Significant Bit First, or, Least Significant Bit First)
38
+
`bitOrder`: Welche Ordnung verwendet werden soll, um zu shiften. Entweder ist dies *MSBFIRST* oder *LSBFIRST*.
39
+
(Most Significant Bit First oder Least Significant Bit First)
37
40
38
-
`value`: the data to shift out. (byte)
41
+
`value`: Die Daten, die hinausgeshiftet werden sollen. (byte)
39
42
40
43
[float]
41
-
=== Returns
42
-
Nothing
44
+
=== Gibt zurück
45
+
Nichts
43
46
44
47
--
45
48
// OVERVIEW SECTION ENDS
@@ -52,43 +55,45 @@ Nothing
52
55
--
53
56
54
57
[float]
55
-
=== Example Code
58
+
=== Beispielcode
56
59
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
57
-
For accompanying circuit, see the http://arduino.cc/en/Tutorial/ShiftOut[tutorial on controlling a 74HC595 shift register].
60
+
Für eingebaute Schaltkreise beachte das http://arduino.cc/en/Tutorial/ShiftOut[Tutorial, wie man ein 74HC595 Shift-Register verwendet].
//set pins to output because they are addressed in the main loop
83
+
//Pins auf output setzen, weil diese im loop() verwendet werden
79
84
pinMode(latchPin, OUTPUT);
80
85
pinMode(clockPin, OUTPUT);
81
86
pinMode(dataPin, OUTPUT);
82
87
}
83
88
84
89
void loop() {
85
-
//count up routine
90
+
//Zähler-Routine
86
91
for (int j = 0; j < 256; j++) {
87
-
//ground latchPin and hold low for as long as you are transmitting
92
+
//Register pin grounden und low halten, solange übertragen wird
88
93
digitalWrite(latchPin, LOW);
89
94
shiftOut(dataPin, clockPin, LSBFIRST, j);
90
-
//return the latch pin high to signal chip that it
91
-
//no longer needs to listen for information
95
+
//Register pin auf high setzen, um dem Chip zu signalisieren, dass
96
+
//er nicht mehr länger Informationen lesen muss
92
97
digitalWrite(latchPin, HIGH);
93
98
delay(1000);
94
99
}
@@ -97,24 +102,24 @@ void loop() {
97
102
[%hardbreaks]
98
103
99
104
[float]
100
-
=== Notes and Warnings
101
-
The dataPin and clockPin must already be configured as outputs by a call to link:../../digital-io/pinmode[pinMode()].
105
+
=== Anmerkungen und Warnungen
106
+
Der dataPin und der clockPin müssen vorher als Outputs konfiguriert sein. Dies wird mit dem Aufruf von link:../Digital%20IO/pinMode.adoc[pinMode()] erreicht.
102
107
103
-
shiftOut is currently written to output 1 byte (8 bits) so it requires a two step operation to output values larger than 255.
108
+
shiftOut shiftet aktuell maximal 1 Byte (8 bits) hinaus. Wenn Werte größer 255 hinausgeshiftet werden sollen, benötigt das Register 2 Schritte.
Generates a square wave of the specified frequency (and 50% duty cycle) on a pin. A duration can be specified, otherwise the wave continues until a call to link:../noTone[noTone()]. The pin can be connected to a piezo buzzer or other speaker to play tones.
19
+
=== Beschreibung
20
+
Generiert einen Ton mit der angegebenen Frequenz (und 50% duty cycle) auf einem Pin. Eine Dauer des Tons kann festgelegt werden; Sonst wird der Ton abgespielt, bis ein link:noTone.adoc[noTone()] aufgerufen wird.
21
+
Der Pin kann an einen Piezo oder an einen Lautsprecher angeschlossen werden, um Töne abzuspielen.
21
22
22
-
Only one tone can be generated at a time. If a tone is already playing on a different pin, the call to tone() will have no effect. If the tone is playing on the same pin, the call will set its frequency.
23
+
Nur ein Ton kann gleichzeitig abgespielt werden. Wenn bereits ein Ton auf einem anderen Pin abgespielt wird, hat `tone()` auf einem 2. Pin keinen Effekt. Wenn der Ton auf dem gleichen Pin gespielt wird, setzt
24
+
der Aufruf der Funktion die Frequenz des Tons.
23
25
24
-
Use of the `tone()` function will interfere with PWM output on pins 3 and 11 (on boards other than the Mega).
26
+
Die Nutzung der `tone()` Funktion interferiert mit PWM outputs auf Pin 3 und 11 (Auf Boards außer dem Arduino Mega).
25
27
26
-
It is not possible to generate tones lower than 31Hz. For technical details, see https://github.com/bhagman/Tone#ugly-details[Brett Hagman's notes].
28
+
Es ist nicht möglich, Töne mit einer Frequenz niedriger als 31Hz zu erstellen. Für technische Details, siehe https://github.com/bhagman/Tone#ugly-details[Brett Hagman's post].
27
29
[%hardbreaks]
28
30
29
31
@@ -35,17 +37,17 @@ It is not possible to generate tones lower than 31Hz. For technical details, see
35
37
[%hardbreaks]
36
38
37
39
[float]
38
-
=== Parameters
39
-
`pin`: the pin on which to generate the tone
40
+
=== Parameter
41
+
`pin`: Der Pin, auf dem der Ton generiert werden soll
40
42
41
-
`frequency`: the frequency of the tone in hertz - `unsigned int`
43
+
`frequency`: Die Frequenz des Tons in Hertz (unsigned int)
42
44
43
-
`duration`: the duration of the tone in milliseconds (optional) - `unsigned long`
45
+
`duration`: Die Dauer des Tons in Millisekunden (optional) (unsigned long)
44
46
[%hardbreaks]
45
47
46
48
[float]
47
-
=== Returns
48
-
Nothing
49
+
=== Gibt zurück
50
+
Nichts
49
51
50
52
--
51
53
// OVERVIEW SECTION ENDS
@@ -58,8 +60,8 @@ Nothing
58
60
--
59
61
60
62
[float]
61
-
=== Notes and Warnings
62
-
If you want to play different pitches on multiple pins, you need to call `noTone()` on one pin before calling `tone() on the next pin.
63
+
=== Anmerkungen und Warnungen
64
+
Wenn du verschiedene Töne auf mehreren Pins spielen willst, musst du zunächst mit link:noTone.adoc[noTone()] auf einem Pin den Ton stoppen und anschließend mit `tone()` auf dem nächsten Pin einen neuen Ton generieren.
63
65
[%hardbreaks]
64
66
65
67
--
@@ -71,16 +73,16 @@ If you want to play different pitches on multiple pins, you need to call `noTone
0 commit comments