User Tools

Site Tools


arduino:data_types:short

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

arduino:data_types:short [2013/02/15 20:45]
arduino:data_types:short [2024/02/16 01:04] (current)
Line 1: Line 1:
 +======short   ======
 +
 +====Description   ====
 +
 +A //short// is a 16-bit data-type. 
 +
 +On all Arduinos (ATMega and ARM based) a //short// stores a 16-bit (2-byte) value. This yields a range of -32,768 to 32,767 (minimum value of -2^15 and a maximum value of (2^15) - 1). \\
 +
 +====Example   ====
 +
 +    [=short ledPin = 13;=]
 +
 +====Syntax   ====
 +
 +    [=short var = val;=]
 +
 +*var - your short variable name
 +*val - the value you assign to that variable 
 +
 +
 +====See Also   ====
 +
 +* [[arduino:data_types:Byte]]
 +* [[arduino:data_types:Int]]
 +* [[arduino:data_types:unsignedint|unsigned int]]
 +* [[arduino:data_types:Long]]
 +* [[arduino:data_types:unsignedlong|unsignedlong]]
 +* [[arduino:data_types:IntegerConstants | Integer Constants]]
 +* [[arduino:variable scope and qualifiers:VariableDeclaration|Variable Declaration]]
 +Source: arduino.cc
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War

Impressum Datenschutz