On Tue, Jun 16, 2009 at 01:02, Tobias
Krieger wrote:
> Hi,
>
> I'm working on a interface between the I2C Bus (Hardware) and PHP - to use
> the PHP as webinterface to control an I2C Device.
[snip!]
Welcome to the list, Tobias. For future reference, please don't
re-send the same email to the l
Tobias Krieger wrote:
> So, what I need is a way to convert any value between 0 and 255 into a
> string with one byte, e.g
>
> 0xff = (with strlen($data) == 1)
>
> I tried it with:
>
> chr(255) - not successfull
> pack("H" and "h", 0xff) - not successfull
> decbin(255) - without succe
Hi,
I'm working on a interface between the I2C Bus (Hardware) and PHP - to use
the PHP as webinterface to control an I2C Device.
The bus is mounted as: /dev/i2c8_aux - and works
opening the bus with
$fd=fopen (/dev/i2c8_aux, w (r+) (r+b) (wb))is successfull
setting the address of the slave
3 matches
Mail list logo