SpiMessageType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The SPI messages sent to GoPiGo3 to get the various data back
public enum SpiMessageType
type SpiMessageType =
Public Enum SpiMessageType
- Inheritance
-
SpiMessageType
Fields
Name | Value | Description |
---|---|---|
None | 0 | None |
GetManufacturer | 1 | Get manufacturer |
GetName | 2 | Get name |
GetHardwareVersion | 3 | Get hardware version |
GetFirmwareVersion | 4 | Get firmware version |
GetId | 5 | Get id |
SetLed | 6 | Set LED |
GetVoltage5V | 7 | Get voltage (5V) |
GetVoltageVcc | 8 | Get voltage (VCC) |
SetServo | 9 | Set servo |
SetMotorPower | 10 | Set motor power |
SetMotorPosition | 11 | Set motor position |
SetMotorPositionKp | 12 | Set motor position controller's proportional factor |
SetMotorPositionKd | 13 | Set motor position controller's derivative (change) factor |
SetMotorDps | 14 | Set motor speed (degrees per second) |
setMotorLimits | 15 | |
SetMotorLimits | 15 | Set motor limits |
OffsetMotorEncoder | 16 | Offset motor encoder |
GetMotorEncoderLeft | 17 | Get left motor encoder |
GetMotorEncoderRight | 18 | Get right motor encoder |
GetMotorStatusLeft | 19 | Get right motor status |
GetMotorStatusRight | 20 | Get left motor status |
SetGroveType | 21 | Set Grove type |
SetGroveMode | 22 | Set Grove mode |
SetGroveState | 23 | Set Grove state |
SetGrovePwmDuty | 24 | Set Grove PWM duty |
SetGrovePwmFrequency | 25 | Set Grove PWM frequency |
GetGrove1Value | 26 | Get Grove 1 value |
GetGrove2Value | 27 | Get Grove 2 value |
GetGrove1Pin1State | 28 | Get Grove 1 pin 1 state |
GetGrove1Pin2State | 29 | Get Grove 1 pin 2 state |
GetGrove2Pin1State | 30 | Get Grove 2 pin 1 state |
GetGrove2Pin2State | 31 | Get Grove 2 pin 2 state |
GetGrove1Pin1Voltage | 32 | Get Grove 1 pin 1 voltage |
GetGrove1Pin2Voltage | 33 | Get Grove 1 pin 2 voltage |
GetGrove2Pin1Voltage | 34 | Get Grove 2 pin 1 voltage |
GetGrove2Pin2Voltage | 35 | Get Grove 2 pin 2 voltage |
GetGrove1Pin1Analog | 36 | Get Grove 1 analog pin 1 |
GetGrove1Pin2Analog | 37 | Get Grove 1 analog pin 2 |
GetGrove2Pin1Analog | 38 | Get Grove 2 analog pin 1 |
GetGrove2Pin2Analog | 39 | Get Grove 2 analog pin 2 |
StartGrove1I2c | 40 | Start Grove 1 I2C |
StartGrove2I2c | 41 | Start Grove 2 I2C |