我正在查看示例代码并发现此操作:
displayMap[x + (y/8)*LCD_WIDTH]|= 1 (shift by) shift;
在哪里
byte shift = y % 8;
我理解|操作数,=但是它们两个一起做什么。
|
=
c bit-manipulation arduino bitwise-operators
arduino ×1
bit-manipulation ×1
bitwise-operators ×1
c ×1