Update of "twowire"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 65d5ccaa53d1f77f55a8147c4732352eaf9c521d
Page Name:twowire
Date: 2014-03-19 21:00:58
Original User: schelte
Parent: 4ed78dd8d02cfc9fea55b0e85aa899b134279f5a
Content

The twowire command


Synopsis

twowire subcommand ?arg ...?


Description

The twowire command provides access to the i2c busses of the Raspberry Pi. The legal values of subcommand are listed below. Note that you can abbreviate the subcommands.

twowire readbyte handle
Read a single byte from the device addressed by the handle.
twowire readregbyte handle register
Read a byte from the specified register of the device addressed by the handle.
twowire readregword handle register
Read a 2-byte word (LSB, MSB) from the specified register of the device addressed by the handle.
twowire twowire bus address
Create a handle for the i2c device with the specified address on the specified i2c bus. This handle can be used with the other subcommands to exchange data with the device. The regular Tcl close or chan close commands can be used to release the handle.
twowire writebyte handle data
Write a single byte to the device addressed by the handle.
twowire writeregbyte handle register data
Write a byte to the specified register of the device addressed by the handle.
twowire writeregword handle register data
Write a 2-byte word (LSB, MSB) to the specified register of the device addressed by the handle.