Versions in this module Expand all Collapse all v1 v1.8.0 Dec 21, 2017 v1.7.1 Nov 5, 2017 v1.7.0 Oct 23, 2017 Changes in this version + const CUSTOM + const ENCODER_TICKS_PER_ROTATION + const GET_FIRMWARE_VERSION + const GET_GROVE_ANALOG_1_1 + const GET_GROVE_ANALOG_1_2 + const GET_GROVE_ANALOG_2_1 + const GET_GROVE_ANALOG_2_2 + const GET_GROVE_STATE_1_1 + const GET_GROVE_STATE_1_2 + const GET_GROVE_STATE_2_1 + const GET_GROVE_STATE_2_2 + const GET_GROVE_VALUE_1 + const GET_GROVE_VALUE_2 + const GET_GROVE_VOLTAGE_1_1 + const GET_GROVE_VOLTAGE_1_2 + const GET_GROVE_VOLTAGE_2_1 + const GET_GROVE_VOLTAGE_2_2 + const GET_HARDWARE_VERSION + const GET_ID + const GET_MANUFACTURER + const GET_MOTOR_ENCODER_LEFT + const GET_MOTOR_ENCODER_RIGHT + const GET_MOTOR_STATUS_LEFT + const GET_MOTOR_STATUS_RIGHT + const GET_NAME + const GET_VOLTAGE_5V + const GET_VOLTAGE_VCC + const GROVE_I2C_LENGTH_LIMIT + const I2C + const IR_DI_REMOTE + const IR_EV3_REMOTE + const MOTOR_FLOAT + const MOTOR_GEAR_RATIO + const MOTOR_TICKS_PER_DEGREE + const NONE + const OFFSET_MOTOR_ENCODER + const SET_GROVE_MODE + const SET_GROVE_PWM_DUTY + const SET_GROVE_PWM_FREQUENCY + const SET_GROVE_STATE + const SET_GROVE_TYPE + const SET_LED + const SET_MOTOR_DPS + const SET_MOTOR_LIMITS + const SET_MOTOR_POSITION + const SET_MOTOR_POSITION_KD + const SET_MOTOR_POSITION_KP + const SET_MOTOR_PWM + const SET_SERVO + const START_GROVE_I2C_1 + const START_GROVE_I2C_2 + const US + const WHEEL_BASE_CIRCUMFERENCE + const WHEEL_BASE_WIDTH + const WHEEL_CIRCUMFERENCE + const WHEEL_DIAMETER + type Driver struct + func NewDriver(a spi.Connector) *Driver + func (g *Driver) AnalogRead(pin string) (value int, err error) + func (g *Driver) Connection() gobot.Connection + func (g *Driver) DigitalRead(pin string) (value int, err error) + func (g *Driver) DigitalWrite(pin string, val byte) (err error) + func (g *Driver) Get5vVoltage() (voltage float32, err error) + func (g *Driver) GetBatteryVoltage() (voltage float32, err error) + func (g *Driver) GetBoardName() (bName string, err error) + func (g *Driver) GetFirmwareVersion() (fVer string, err error) + func (g *Driver) GetHardwareVersion() (hVer string, err error) + func (g *Driver) GetManufacturerName() (mName string, err error) + func (g *Driver) GetMotorEncoder(motor Motor) (encoder int64, err error) + func (g *Driver) GetMotorStatus(motor Motor) (flags uint8, power uint16, encoder, dps float64, err error) + func (g *Driver) GetSerialNumber() (sNum string, err error) + func (g *Driver) Halt() (err error) + func (g *Driver) Name() string + func (g *Driver) OffsetMotorEncoder(motor Motor, offset float64) error + func (g *Driver) PwmWrite(pin string, val byte) (err error) + func (g *Driver) ServoWrite(pin string, angle byte) error + func (g *Driver) SetGroveMode(port Grove, mode GroveMode) error + func (g *Driver) SetGroveType(port Grove, gType GroveType) error + func (g *Driver) SetLED(led Led, red, green, blue uint8) error + func (g *Driver) SetMotorDps(motor Motor, dps float64) error + func (g *Driver) SetMotorLimits(motor Motor, power int8, dps float64) error + func (g *Driver) SetMotorPosition(motor Motor, position float64) error + func (g *Driver) SetMotorPower(motor Motor, power int8) error + func (g *Driver) SetName(n string) + func (g *Driver) SetPWMDuty(port Grove, duty uint8) (err error) + func (g *Driver) SetPWMFreq(port Grove, freq uint16) error + func (g *Driver) SetServo(servo Servo, us uint16) error + func (g *Driver) Start() (err error) + type Grove byte + const AD_1 + const AD_1_1 + const AD_1_2 + const AD_2 + const AD_2_1 + const AD_2_2 + type GroveMode byte + const GROVE_INPUT_ANALOG + const GROVE_INPUT_ANALOG_PULLDOWN + const GROVE_INPUT_ANALOG_PULLUP + const GROVE_INPUT_DIGITAL + const GROVE_INPUT_DIGITAL_PULLDOWN + const GROVE_INPUT_DIGITAL_PULLUP + const GROVE_OUTPUT_DIGITAL + const GROVE_OUTPUT_PWM + type GroveState int + const CONFIGURING + const I2C_ERROR + const NOT_CONFIGURED + const NO_DATA + const VALID_DATA + type GroveType int + type Led byte + const LED_BLINKER_LEFT + const LED_BLINKER_RIGHT + const LED_EYE_LEFT + const LED_EYE_RIGHT + const LED_WIFI + type Motor byte + const MOTOR_LEFT + const MOTOR_RIGHT + type Servo byte + const SERVO_1 + const SERVO_2