Documentation ¶
Index ¶
- Constants
- type BMP180
- type BMP180Accuracy
- type DS18B20OneWire
- type HD44780
- func (h *HD44780) Backlight(l bool) error
- func (h *HD44780) Blink(bool) error
- func (h *HD44780) Clear() error
- func (h *HD44780) Cols() byte
- func (h *HD44780) Command(cmd byte) error
- func (h *HD44780) Cursor(bool) error
- func (h *HD44780) Display(bool) error
- func (h *HD44780) Home() error
- func (h *HD44780) Init() (err error)
- func (h *HD44780) Pos() (byte, byte)
- func (h *HD44780) Print(line string) (err error)
- func (h *HD44780) Printf(x string, y ...interface{}) error
- func (h *HD44780) Rows() byte
- func (h *HD44780) SetPos(r byte, c byte) (err error)
- func (h *HD44780) SetPrintFlags(flg byte)
- func (h *HD44780) Write(buf []byte) (int, error)
- type PrintFlags
- type ShowOptions
- type TextDisplay
- type TextDisplaySize
Constants ¶
View Source
const ( AccuracyUltraLow BMP180Accuracy = 0 AccuracyLow = 0 AccuracyStandard = 1 AccuracyHigh = 2 AccuracyUltraHigh = 3 AccuracyHighest = 4 )
View Source
const (
LinuxW1BusPath = "/sys/bus/w1/devices/w1_bus_master%d"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMP180 ¶
type BMP180 struct {
// contains filtered or unexported fields
}
type DS18B20OneWire ¶
type DS18B20OneWire struct {
// contains filtered or unexported fields
}
func (*DS18B20OneWire) Init ¶
func (d *DS18B20OneWire) Init(busNo int, deviceAddr string) (err error)
func (*DS18B20OneWire) ReadNanoK ¶
func (d *DS18B20OneWire) ReadNanoK() (temp unit.Temperature, err error)
type HD44780 ¶
type HD44780 struct {
// contains filtered or unexported fields
}
func CreateHD44780 ¶
func CreateHD44780(i2c *i2c.Device, size TextDisplaySize) *HD44780
type PrintFlags ¶
type PrintFlags byte
const ( Continuous PrintFlags = 0x1 Default PrintFlags = Continuous )
type TextDisplay ¶
type TextDisplaySize ¶
type TextDisplaySize byte
const ( SizeUndefined TextDisplaySize = iota TextLCD16x2 TextLCD20x4 )
Click to show internal directories.
Click to hide internal directories.