1wire.readbyte
From Pinguino-Wiki
Contents |
Name
- 1wire.readbyte
Description
Read a byte from the one-wire bus and return it.
- Since Beta 9.5
Syntax
u8 1wire.readbyte(u8 DQpin)
- Parameters
- DQpin = pin one-wire data (DQ) line connected to
- Returns/Output;
- value of byte read from one-wire data line
Example
while (busy == 0) // Wait while busy ( = bus is low) busy = 1wire.readbyte(0); // One-Wire bus is on pin 0 (RB0)

