short

Beschreibung

Ein short ist ein 16-Bit-Datentyp.

Auf allen Arduinos (ATMega und ARM-basiert) speichert ein Short einen 16-Bit-Wert (2 Byte). Dies ergibt einen Bereich von -32,768 bis 32,767 (Minimalwert von -2^15 und Maximalwert von (2^15) - 1).

Syntax

short var = val

Parameter

  • var
    : Variablenname.
  • val
    : Der Wert, der der Variablen zugewiesen wird.

Beispielcode

short ledPin = 13

Siehe auch

Suggest changes

The content on docs.arduino.cc is facilitated through a public GitHub repository. If you see anything wrong, you can edit this page here.

License

The Arduino documentation is licensed under the Creative Commons Attribution-Share Alike 4.0 license.