This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
uphp:functions:ow_read [2017/05/11 10:04] admin created |
uphp:functions:ow_read [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======ow_read====== | ======ow_read====== | ||
- | < | + | < |
- | Read a byte from the Onewire | + | Read a byte from the OneWire |
====Description==== | ====Description==== | ||
Line 9: | Line 9: | ||
<well size=" | <well size=" | ||
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
- | <span style=" | + | |
</ | </ | ||
- | ====Parameter==== | + | This function will read a single byte from the OneWire bus. This is a low level function allowing custom OneWire operations. |
- | none | + | ====Parameters==== |
+ | |||
+ | None | ||
====Return Values==== | ====Return Values==== | ||
- | An < | + | An < |
====Example==== | ====Example==== | ||
<code php> | <code php> | ||
- | <pre><? | + | <? |
- | + | ||
$res=ow_read(); | $res=ow_read(); | ||
- | print(" | + | print(" |
- | | + | |
?> | ?> | ||
</ | </ | ||
+ | |||
====See Also==== | ====See Also==== | ||
- | [[ow_first()]] - Get the first device | + | [[ow_first()]] - Initiate a OneWire bus scan and return the address of the first device |
- | [[ow_next()]] - Get next device | + | [[ow_next()]] - Return the address of the next OneWire |
- | [[ow_read_temp()]] - Read a temperature from a device | + | [[ow_read_temp()]] - Read a temperature from a device |
- | [[ow_reset()]] - Reset the onewire | + | [[ow_reset()]] - Reset the OneWire |
- | [[ow_write()]] - Write to onewire | + | [[ow_write()]] - Write a byte to the OneWire |