User Tools

Site Tools


uphp:functions:ow_write

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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======
  
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>+<badge>WMPRO >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Write a byte to the Onewire bus.  This is a low level function allowing custom onewire operations.+Write a byte to the OneWire bus
  
 ====Description==== ====Description====
  
 <well size="sm"><html> <well size="sm"><html>
-<span style="font-size:125%;color:green"> +<span style="font-size:125%">ow_write ( 
-<span style="color:black">ow_write ( +<span style="color:green">int 
-<span style="color:green">$val+<span style="color:blue">$value
 <span style="color:black">) <span style="color:black">)
 </html></well> </html></well>
 +
 +This function will write a single byte to the OneWire bus.  This is a low level function allowing custom OneWire operations.
  
 ====Parameter==== ====Parameter====
  
-An <html><b><span style="color:green">int<span style="color:black"></b></html> value containing the byte to send to the onewire bus+<html><b><span style="color:blue">$value<span style="color:black"></b>:  An <b><span style="color:green">integer<span style="color:black"></b></html> value of the byte to send to the OneWire bus
  
 ====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); +
-  +
 ?> ?>
 </code> </code>
 +
 ====See Also==== ====See Also====
  
-[[ow_first()]] - Get the first device on the bus+[[ow_first()]] - Initiate a OneWire bus scan and return the address of the first device found
  
-[[ow_next()]] - Get next device on bus+[[ow_next()]] - Return the address of the next OneWire device found (after an ow_first)
  
-[[ow_read_temp()]] - Read a temperature from a device+[[ow_read_temp()]] - Read a temperature from a device on the OneWire bus
  
-[[ow_reset()]] - Reset the onewire bus+[[ow_reset()]] - Reset the OneWire bus
  
-[[ow_read()]] - Read a byte from the onewire bus+[[ow_read()]] - Read a byte from the OneWire bus
  
uphp/functions/ow_write.1494497257.txt.gz · Last modified: 2021/09/13 05:56 (external edit)