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).
Syntax
short var = val;
Parameter Values
- var: variable name.
- val: the value you assign to that variable.
Example Code
short ledPin = 13
See Also
- Language : array
- Language : bool
- Language : boolean
- Language : byte
- Language : char
- Language : double
- Language : float
- Language : int
- Language : long
- Language : size_t
- Language : string
- Language : String()
- Language : unsigned char
- Language : unsigned int
- Language : unsigned long
- Language : void
- Language : word
- Language : Integer Constants
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Please note: These are Amazon affiliate links. If you buy the components through these links, We will get a commission at no extra cost to you. We appreciate it.