arduino 变量类型
示例
char:带符号的1字节的字符值
byte:无符号8位整数
int:带符号的16位(在基于ATMEGA的板上)或32位(在ArduinoDue上)整数
unsignedint:无符号16位(在基于ATMEGA的板上)或32位(在ArduinoDue上)整数
long:有符号的32位整数
unsignedlong:32位无符号整数
float:4字节浮点数
double:4字节(在基于ATMEGA的板上)或8字节(在ArduinoDue上)浮点数
例子:
char a = 'A'; char a = 65; byte b = B10010; int c = 2; unsigned int d = 3; long e = 186000L; unsigned long f = millis(); //举个例子 float g = 1.117; double h = 1.117;
热门推荐
10 圣诞祝福语简短小学
11 祖国七十华诞简短祝福语
12 老师送的祝福语简短
13 生日祝福语大全女生简短
14 祝女性生日祝福语简短
15 牛年女神节祝福语简短
16 情人表白祝福语简短大气
17 老公开业祝福语简短
18 官宣新年祝福语简短