Short
出自YFRobotwiki
描述
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).
語法
short var = val;
- - var - your short variable name
- - val - the value you assign to that variable
示例
short ledPin = 13;
擴展閱讀
- - byte
- - int
- - unsigned int
- - long
- - unsigned long
- - Integer constants(整型常量)
返回Arduino語法參考列表
更多建議和問題歡迎反饋至 YFRobot論壇