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