trying to fix gpio_slowdown

pull/13/head
Brendan Porter 6 years ago
parent 6e70d484fb
commit 3c1c20ef36

@ -103,17 +103,6 @@ func (c *HardwareConfig) geometry() (width, height int) {
return c.Cols * c.ChainLength, c.Rows * c.Parallel
}
func (r *RuntimeOptions) toC() *C.struct_RuntimeOptions {
o := &C.struct_RuntimeOptions{}
o.gpio_slowdown = C.int(r.GPIOSlowdown)
if c.GPIOSlowdown > 0 || c.GPIOSlowdown > 4 {
o.gpio_slowdown = 1
}
return o
}
func (c *HardwareConfig) toC() *C.struct_RGBLedMatrixOptions {
o := &C.struct_RGBLedMatrixOptions{}
o.rows = C.int(c.Rows)

Loading…
Cancel
Save