From 3c1c20ef3612ad2bde1bcf9ccc3e9bd33f980056 Mon Sep 17 00:00:00 2001 From: Brendan Porter Date: Fri, 17 Aug 2018 13:33:04 -0500 Subject: [PATCH] trying to fix gpio_slowdown --- matrix.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/matrix.go b/matrix.go index f3f9fce..2d3a3fd 100644 --- a/matrix.go +++ b/matrix.go @@ -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)