“Short”的版本间的差异
来自YFRobotwiki
(未显示1个用户的2个中间版本) | |||
第34行: | 第34行: | ||
:- [[unsigned long]] | :- [[unsigned long]] | ||
:- [[Integer constants(整型常量)]] | :- [[Integer constants(整型常量)]] | ||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
---- | ---- |
2017年9月10日 (日) 21:09的最后版本
描述 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;
short ledPin = 13;
|
更多建议和问题欢迎反馈至 YFRobot论坛