|
|
|
@ -60,7 +60,7 @@ var DefaultConfig = HardwareConfig{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type RunTimeConfig struct {
|
|
|
|
type RunTimeConfig struct {
|
|
|
|
Gpio_slowdown int
|
|
|
|
gpio_slowdown int
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// HardwareConfig rgb-led-matrix configuration
|
|
|
|
// HardwareConfig rgb-led-matrix configuration
|
|
|
|
@ -110,7 +110,7 @@ func (c *HardwareConfig) geometry() (width, height int) {
|
|
|
|
|
|
|
|
|
|
|
|
func (c *RunTimeConfig) rt_options() *C.struct_RGBLedRuntimeOptions {
|
|
|
|
func (c *RunTimeConfig) rt_options() *C.struct_RGBLedRuntimeOptions {
|
|
|
|
rt := &C.struct_RGBLedRuntimeOptions{}
|
|
|
|
rt := &C.struct_RGBLedRuntimeOptions{}
|
|
|
|
rt.gpio_slowdown = C.int(c.Gpio_slowdown)
|
|
|
|
rt.gpio_slowdown = C.int(c.gpio_slowdown)
|
|
|
|
|
|
|
|
|
|
|
|
return rt
|
|
|
|
return rt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|