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.