Lines Matching refs:mode1
120 uint8_t mode1 = readByte(REG_MODE1);
121 uint8_t restartBit = mode1 & MODE1_RESTART;
124 mode1 |= MODE1_SLEEP;
126 mode1 &= ~MODE1_SLEEP;
130 mode1 &= ~MODE1_RESTART;
132 writeByte(REG_MODE1, mode1);
142 mode1 |= restartBit;
143 writeByte(REG_MODE1, mode1);
151 uint8_t mode1 = readByte(REG_MODE1);
154 mode1 |= MODE1_AI;
156 mode1 &= ~MODE1_AI;
158 return writeByte(REG_MODE1, mode1);