fixing gpio slowdown

pull/13/head
Brendan Porter 6 years ago
parent 1338f76145
commit 1563b8531e

@ -118,7 +118,10 @@ func (c *HardwareConfig) toC() *C.struct_RGBLedMatrixOptions {
o.brightness = C.int(c.Brightness)
o.scan_mode = C.int(c.ScanMode)
o.hardware_mapping = C.CString(c.HardwareMapping)
o.gpio_slowdown = C.int(c.GPIOSlowdown)
if c.GPIOSlowdown >= 0 && c.GPIOSlowdown < 3 {
C.gpio_slowdown(gpio_slowdown)
}
if c.ShowRefreshRate == true {
C.set_show_refresh_rate(o, C.int(1))

Loading…
Cancel
Save