This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
uphp:functions:ow_write [2017/05/11 10:07] admin created |
uphp:functions:ow_write [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======ow_write====== | ======ow_write====== | ||
- | < | + | < |
- | Write a byte to the Onewire | + | Write a byte to the OneWire |
====Description==== | ====Description==== | ||
<well size=" | <well size=" | ||
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
<span style=" | <span style=" | ||
</ | </ | ||
+ | |||
+ | This function will write a single byte to the OneWire bus. This is a low level function allowing custom OneWire operations. | ||
====Parameter==== | ====Parameter==== | ||
- | An < | + | < |
====Return Values==== | ====Return Values==== | ||
- | none | + | None |
====Example==== | ====Example==== | ||
<code php> | <code php> | ||
- | <pre><? | + | <? |
- | + | ow_write(10); | |
- | ow_write(10); | + | ow_write(11); |
- | ow_write(11); | + | ow_write(0x55); |
- | ow_write(0x55); | + | |
- | | + | |
?> | ?> | ||
</ | </ | ||
+ | |||
====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_read()]] - Read a byte from the onewire | + | [[ow_read()]] - Read a byte from the OneWire |