unsigned char

描述

该型别为占用 1 个位元组记忆体的无符号资料型别,与 byte 资料型别雷同,unsigned char 的编码范围为 0 到 255,为了一致性 86Duino 的程式码撰写风格会更倾向于使用 byte 资料型别。

范例


unsigned char myChar = 240;

See also

byte
int
array
Serial.println


语法参考主页面

本页由热血青年 LBU 译自英文版。

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.