bit()

描述

計算指定位元為 1 時所代表的數值 (例如:位元 0 的值是 1,位元 1 的值是 2,位元 2 的值是 4 …等)。

語法


bit(n)

參數

n: 欲計算的位元

回傳

該位元所代表的數值

See also

bitRead()
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.