From 3b69399be226a170db20991dc95e3c950612b711 Mon Sep 17 00:00:00 2001 From: Brendan Porter Date: Wed, 15 Aug 2018 18:23:06 -0500 Subject: [PATCH] Added GPIO Slowdown --- matrix.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matrix.go b/matrix.go index 8b9ddf1..9ecc432 100644 --- a/matrix.go +++ b/matrix.go @@ -95,6 +95,9 @@ type HardwareConfig struct { ShowRefreshRate bool InverseColors bool + // Control speed of GPIO updates. Valid range is 0..3 + GPIOSlowdown int + // Name of GPIO mapping used HardwareMapping string } @@ -114,6 +117,7 @@ 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.ShowRefreshRate == true { C.set_show_refresh_rate(o, C.int(1))