Reference.Short History

Hide minor edits - Show changes to output

September 14, 2015, at 12:07 PM by Alice Pintus -
Changed lines 11-12 from:
[=short ledPin = 13;=]
to:
@@short ledPin = 13;@@
Changed lines 15-16 from:
[=short var = val;=]
to:
@@short var = val;@@
September 14, 2015, at 12:06 PM by Alice Pintus -
Changed lines 11-12 from:
[=short ledPin = 13;=]
to:
[=short ledPin = 13;=]
Changed lines 15-16 from:
[=short var = val;=]
to:
[=short var = val;=]
September 14, 2015, at 12:06 PM by Alice Pintus -
Changed lines 11-12 from:
[=short ledPin = 13;=]
to:
[=short ledPin = 13;=]
Changed lines 15-16 from:
[=short var = val;=]
to:
[=short var = val;=]
October 20, 2012, at 04:36 PM by Scott Fitzgerald -
Added lines 1-29:
!!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

* [[byte]]
* [[int]]
* [[unsigned int]]
* [[long]]
* [[unsigned long]]
* [[IntegerConstants | Integer Constants]]
* [[http://arduino.cc/en/Reference/VariableDeclaration|Variable Declaration]]

Share