[Data Types]
説明
A short is a 16-bit data-type.
On the 86Duino, 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).
例
short ledPin = 13;
構文
short var = val;
var – your short variable nameval – the value you assign to that variable
参照
- [Language] byte
- [Language] int
- [Language] unsigned int
- [Language] long
- [Language] unsigned long
- [Language] Integer Constants
- [Language] Variable Declaration
Language Reference Home
86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。