| 261 | } |
| 262 | |
| 263 | void OneWire::write_bytes(const uint8_t *buf, uint16_t count, bool power /* = 0 */) { |
| 264 | for (uint16_t i = 0 ; i < count ; i++) |
| 265 | write(buf[i]); |
| 266 | if (!power) { |
| 267 | noInterrupts(); |
| 268 | DIRECT_MODE_INPUT(baseReg, bitmask); |
| 269 | DIRECT_WRITE_LOW(baseReg, bitmask); |
| 270 | interrupts(); |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | // |
| 275 | // Read a byte |
nothing calls this directly
no outgoing calls
no test coverage detected