Versions in this module Expand all Collapse all v0 v0.13.0 Oct 10, 2016 Changes in this version + type AdafruitDirection int + const AdafruitBackward + const AdafruitForward + const AdafruitRelease + type AdafruitMotorHatDriver struct + func NewAdafruitMotorHatDriver(a I2c, name string) *AdafruitMotorHatDriver + func (a *AdafruitMotorHatDriver) Connection() gobot.Connection + func (a *AdafruitMotorHatDriver) Halt() (errs []error) + func (a *AdafruitMotorHatDriver) Name() string + func (a *AdafruitMotorHatDriver) RunDCMotor(dcMotor int, dir AdafruitDirection) (err error) + func (a *AdafruitMotorHatDriver) SetDCMotorSpeed(dcMotor int, speed int32) (err error) + func (a *AdafruitMotorHatDriver) SetMotorHatAddress(addr int) (errs []error) + func (a *AdafruitMotorHatDriver) SetServoHatAddress(addr int) (errs []error) + func (a *AdafruitMotorHatDriver) SetServoMotorFreq(freq float64) (err error) + func (a *AdafruitMotorHatDriver) SetServoMotorPulse(channel byte, on, off int32) (err error) + func (a *AdafruitMotorHatDriver) SetStepperMotorSpeed(stepperMotor int, rpm int) (errs []error) + func (a *AdafruitMotorHatDriver) Start() (errs []error) + func (a *AdafruitMotorHatDriver) Step(motor, steps int, dir AdafruitDirection, style AdafruitStepStyle) (err error) + type AdafruitStepStyle int + const AdafruitDouble + const AdafruitInterleave + const AdafruitMicrostep + const AdafruitSingle type MCP23017Driver + func (m *MCP23017Driver) PinMode(pin, val uint8, portStr string) (err error) v0.12.1 Jul 13, 2016 Changes in this version type MCP23017Config + func (mc *MCP23017Config) GetUint8Value() uint8 v0.12.0 Jul 13, 2016 v0.11.0 Feb 17, 2016 Changes in this version + const C + const Error + const Joystick + const LCD_2LINE + const LCD_2NDLINEOFFSET + const LCD_BLINKOFF + const LCD_BLINKON + const LCD_CLEARDISPLAY + const LCD_CMD + const LCD_CURSORMOVE + const LCD_CURSOROFF + const LCD_CURSORON + const LCD_CURSORSHIFT + const LCD_DATA + const LCD_DISPLAYCONTROL + const LCD_DISPLAYMOVE + const LCD_DISPLAYOFF + const LCD_DISPLAYON + const LCD_ENTRYLEFT + const LCD_ENTRYMODESET + const LCD_ENTRYRIGHT + const LCD_ENTRYSHIFTDECREMENT + const LCD_ENTRYSHIFTINCREMENT + const LCD_FUNCTIONSET + const LCD_MOVELEFT + const LCD_MOVERIGHT + const LCD_RETURNHOME + const LCD_SETCGRAMADDR + const LCD_SETDDRAMADDR + const MMA7660_ACTIVE + const MMA7660_AUTO_SLEEP_1 + const MMA7660_AUTO_SLEEP_120 + const MMA7660_AUTO_SLEEP_16 + const MMA7660_AUTO_SLEEP_2 + const MMA7660_AUTO_SLEEP_32 + const MMA7660_AUTO_SLEEP_4 + const MMA7660_AUTO_SLEEP_64 + const MMA7660_AUTO_SLEEP_8 + const MMA7660_INTSU + const MMA7660_MODE + const MMA7660_PD + const MMA7660_PDET + const MMA7660_SPCNT + const MMA7660_SR + const MMA7660_SRST + const MMA7660_STAND_BY + const MMA7660_TILT + const MMA7660_X + const MMA7660_Y + const MMA7660_Z + const MPL115A2_REGISTER_A0_COEFF_LSB + const MPL115A2_REGISTER_A0_COEFF_MSB + const MPL115A2_REGISTER_B1_COEFF_LSB + const MPL115A2_REGISTER_B1_COEFF_MSB + const MPL115A2_REGISTER_B2_COEFF_LSB + const MPL115A2_REGISTER_B2_COEFF_MSB + const MPL115A2_REGISTER_C12_COEFF_LSB + const MPL115A2_REGISTER_C12_COEFF_MSB + const MPL115A2_REGISTER_PRESSURE_LSB + const MPL115A2_REGISTER_PRESSURE_MSB + const MPL115A2_REGISTER_STARTCONVERSION + const MPL115A2_REGISTER_TEMP_LSB + const MPL115A2_REGISTER_TEMP_MSB + const MPU6050_ACCEL_FS_2 + const MPU6050_ACONFIG_AFS_SEL_BIT + const MPU6050_ACONFIG_AFS_SEL_LENGTH + const MPU6050_CLOCK_PLL_XGYRO + const MPU6050_GCONFIG_FS_SEL_BIT + const MPU6050_GCONFIG_FS_SEL_LENGTH + const MPU6050_GYRO_FS_250 + const MPU6050_PWR1_CLKSEL_BIT + const MPU6050_PWR1_CLKSEL_LENGTH + const MPU6050_PWR1_ENABLE_BIT + const MPU6050_PWR1_SLEEP_BIT + const MPU6050_RA_ACCEL_CONFIG + const MPU6050_RA_ACCEL_XOUT_H + const MPU6050_RA_GYRO_CONFIG + const MPU6050_RA_PWR_MGMT_1 + const REG_BLUE + const REG_GREEN + const REG_RED + const Z + var CustomLCDChars = map[string][8]byte + var Debug = true + var ErrEncryptedBytes = errors.New("Encrypted bytes") + var ErrInvalidPosition = errors.New("Invalid position value") + var ErrNotEnoughBytes = errors.New("Not enough bytes read") + var ErrNotReady = errors.New("Device is not ready") + type BlinkMDriver struct + func NewBlinkMDriver(a I2c, name string) *BlinkMDriver + func (b *BlinkMDriver) Color() (color []byte, err error) + func (b *BlinkMDriver) Connection() gobot.Connection + func (b *BlinkMDriver) Fade(red byte, green byte, blue byte) (err error) + func (b *BlinkMDriver) FirmwareVersion() (version string, err error) + func (b *BlinkMDriver) Halt() (errs []error) + func (b *BlinkMDriver) Name() string + func (b *BlinkMDriver) Rgb(red byte, green byte, blue byte) (err error) + func (b *BlinkMDriver) Start() (errs []error) + type GroveAccelerometerDriver struct + func NewGroveAccelerometerDriver(a I2c, name string) *GroveAccelerometerDriver + type GroveLcdDriver struct + func NewGroveLcdDriver(a I2c, name string) *GroveLcdDriver + type HMC6352Driver struct + func NewHMC6352Driver(a I2c, name string) *HMC6352Driver + func (h *HMC6352Driver) Connection() gobot.Connection + func (h *HMC6352Driver) Halt() (errs []error) + func (h *HMC6352Driver) Heading() (heading uint16, err error) + func (h *HMC6352Driver) Name() string + func (h *HMC6352Driver) Start() (errs []error) + type I2c interface + type I2cReader interface + I2cRead func(address int, len int) (data []byte, err error) + type I2cStarter interface + I2cStart func(address int) (err error) + type I2cWriter interface + I2cWrite func(address int, buf []byte) (err error) + type JHD1313M1Driver struct + func NewJHD1313M1Driver(a I2c, name string) *JHD1313M1Driver + func (h *JHD1313M1Driver) Clear() error + func (h *JHD1313M1Driver) Connection() gobot.Connection + func (h *JHD1313M1Driver) Halt() []error + func (h *JHD1313M1Driver) Home() error + func (h *JHD1313M1Driver) Name() string + func (h *JHD1313M1Driver) Scroll(leftToRight bool) error + func (h *JHD1313M1Driver) SetCustomChar(pos int, charMap [8]byte) error + func (h *JHD1313M1Driver) SetPosition(pos int) (err error) + func (h *JHD1313M1Driver) SetRGB(r, g, b int) error + func (h *JHD1313M1Driver) Start() []error + func (h *JHD1313M1Driver) Write(message string) error + type LIDARLiteDriver struct + func NewLIDARLiteDriver(a I2c, name string) *LIDARLiteDriver + func (h *LIDARLiteDriver) Connection() gobot.Connection + func (h *LIDARLiteDriver) Distance() (distance int, err error) + func (h *LIDARLiteDriver) Halt() (errs []error) + func (h *LIDARLiteDriver) Name() string + func (h *LIDARLiteDriver) Start() (errs []error) + type MCP23017Config struct + Bank uint8 + Disslw uint8 + Haen uint8 + Intpol uint8 + Mirror uint8 + Odr uint8 + Seqop uint8 + type MCP23017Driver struct + func NewMCP23017Driver(a I2c, name string, conf MCP23017Config, deviceAddress int, v ...time.Duration) *MCP23017Driver + func (m *MCP23017Driver) Connection() gobot.Connection + func (m *MCP23017Driver) Halt() (err []error) + func (m *MCP23017Driver) Name() string + func (m *MCP23017Driver) ReadGPIO(pin float64, portStr string) (val bool, err error) + func (m *MCP23017Driver) SetGPIOPolarity(pin uint8, val byte, portStr string) (err error) + func (m *MCP23017Driver) SetPullUp(pin uint8, val byte, portStr string) error + func (m *MCP23017Driver) Start() (errs []error) + func (m *MCP23017Driver) WriteGPIO(pin float64, val float64, portStr string) (err error) + type MMA7660Driver struct + func NewMMA7660Driver(a I2c, name string) *MMA7660Driver + func (h *MMA7660Driver) Acceleration(x, y, z float64) (ax, ay, az float64) + func (h *MMA7660Driver) Connection() gobot.Connection + func (h *MMA7660Driver) Halt() (errs []error) + func (h *MMA7660Driver) Name() string + func (h *MMA7660Driver) Start() (errs []error) + func (h *MMA7660Driver) XYZ() (x float64, y float64, z float64, err error) + type MPL115A2Driver struct + A0 float32 + B1 float32 + B2 float32 + C12 float32 + Pressure float32 + Temperature float32 + func NewMPL115A2Driver(a I2c, name string, v ...time.Duration) *MPL115A2Driver + func (h *MPL115A2Driver) Connection() gobot.Connection + func (h *MPL115A2Driver) Halt() (err []error) + func (h *MPL115A2Driver) Name() string + func (h *MPL115A2Driver) Start() (errs []error) + type MPU6050Driver struct + Accelerometer ThreeDData + Gyroscope ThreeDData + Temperature int16 + func NewMPU6050Driver(a I2c, name string, v ...time.Duration) *MPU6050Driver + func (h *MPU6050Driver) Connection() gobot.Connection + func (h *MPU6050Driver) Halt() (errs []error) + func (h *MPU6050Driver) Name() string + func (h *MPU6050Driver) Start() (errs []error) + type ThreeDData struct + X int16 + Y int16 + Z int16 + type WiichuckDriver struct + func NewWiichuckDriver(a I2c, name string, v ...time.Duration) *WiichuckDriver + func (w *WiichuckDriver) Connection() gobot.Connection + func (w *WiichuckDriver) Halt() (errs []error) + func (w *WiichuckDriver) Name() string + func (w *WiichuckDriver) Start() (errs []error)