Tcl Raspberry Pi I/O


The jeebmp command


package require jeebmp

jeebmp subcommand ?arg ...?


The jeebmp command lets you interact with BMP085 based devices, like the jeelabs pressure plug. The legal values of subcommand are listed below. Note that you can abbreviate the subcommands.

jeebmp pressureplug bus
Open a channel to a jeelabs pressure plug. The command returns the channel handle.
jeebmp measure handle ?resolution?
Triggers the device to perform a temperature and pressure measurement. The resolution is a value from 0 to 3, where 3 produces the highest resolution (this is the default). Higher resolutions require more time. The command returns a dict with a temperature and a pressure value.