bitRead()
描述
讀取一個數字中的某個位元。
語法
bitRead(x, n)
參數
x
: 要讀取的數字。
n
: 指定讀取的位元,從 0 開始算起,而 0 則對應最低有效位 (最右邊的位元)。
回傳
該位元的值 (0 或 1)
See also
- bit()
- bitWrite()
- 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.