Documentation ¶
Index ¶
- type Gpio
- func (*Gpio) GetDigital(pin int) int
- func (*Gpio) SetDigital(pin int, value string)
- func (*Gpio) SetFunction(pin int, function string)
- func (*Gpio) SetMode(pin int, mode string)
- func (*Gpio) SetPWM(pin int, percentage float32, frequency float32)
- func (*Gpio) SetServoAngle(pin int, angle float32, minPulseMs float32)
- type Humidity
- type Imu
- type Led
- type Matrix
- type Pressure
- type RGBW
- type Uv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gpio ¶
type Gpio struct{}
Gpio is used as the entrance point to communicate with the MATRIX GPIO Pinout.
func (*Gpio) GetDigital ¶
GetDigital Reads a Pin's ON(1) or OFF(0) state (digital)
func (*Gpio) SetDigital ¶
SetDigital configures a pin to use Digital and output an ON/OFF signal
func (*Gpio) SetFunction ¶
SetFunction sets the pin to do Digital or PWM
type Imu ¶
type Imu struct {
AccelX, AccelY, AccelZ float32
GyroX, GyroY, GyroZ float32
Yaw, Pitch, Roll float32
MagX, MagY, MagZ float32
}
Imu sensor values
type Led ¶
type Led struct {
Length int
}
Led is used as the entrance point to communicate with the MATRIX everloop (That big ring of LEDs).
Click to show internal directories.
Click to hide internal directories.