[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
參考
- [程式語法] byte
- [程式語法] int
- [程式語法] unsigned int
- [程式語法] long
- [程式語法] unsigned long
- [程式語法] Integer Constants
- [程式語法] Variable Declaration
語法參考主頁面
86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。