Unsigned char

来自YFRobotwiki
2016年12月26日 (一) 21:19Allblue讨论 | 贡献的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索


描述

An unsigned data type that occupies 1 byte of memory. Same as the byte datatype.

The unsigned char datatype encodes numbers from 0 to 255.

For consistency of Arduino programming style, the byte data type is to be preferred.

译:

一个无符号数据类型占用1个字节的内存。与byte的数据类型相同。

无符号的char数据类型能编码0到255的数字。

为了保持Arduino的编程风格的一致性,byte数据类型是首选。


示例

    unsigned char myChar = 240;


扩展阅读

- byte
- int
- array
- Serial.println




返回Arduino语法参考列表

更多建议和问题欢迎反馈至 YFRobot论坛