| 278 | } |
| 279 | |
| 280 | void OneWire::write_bytes(const uint8_t *buf, uint16_t count, bool power /* = 0 */) { |
| 281 | for (uint16_t i = 0 ; i < count ; i++) |
| 282 | write(buf[i]); |
| 283 | if (!power) { |
| 284 | noInterrupts(); |
| 285 | DIRECT_MODE_INPUT(baseReg, bitmask); |
| 286 | DIRECT_WRITE_LOW(baseReg, bitmask); |
| 287 | interrupts(); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | // |
| 292 | // Read a byte |
nothing calls this directly
no outgoing calls
no test coverage detected