bitWrite()
描述
對一個數字中的某個位元寫值。
語法
bitWrite(x, n, b)
參數
x
: 要寫入的數字。
n
: 指定寫入的位元,從 0 開始算起,而 0 則對應最低有效位 (最右邊的位元)。
b
: 要寫入的位元值 (0 或 1)。
回傳
無回傳值
See also
- bit()
- bitRead()
- bitSet()
- bitClear()
本頁由熱血青年 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.