short

[Data Types]

説明

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).

Example Code

short ledPin = 13;

Syntax

short var = val;

var – your short variable name
val – the value you assign to that variable

See also


Language Reference Home

86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

コメントする

上部へスクロール