From 333bbaf8670e6b3d2f226ed3b3a8bff619ffe5e0 Mon Sep 17 00:00:00 2001 From: Brendan Porter Date: Fri, 17 Aug 2018 13:29:20 -0500 Subject: [PATCH] trying to fix gpio_slowdown --- matrix.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/matrix.go b/matrix.go index 82961fc..ea9f635 100644 --- a/matrix.go +++ b/matrix.go @@ -58,11 +58,6 @@ var DefaultConfig = HardwareConfig{ ScanMode: Progressive, } -type RuntimeOptions struct { - // Control speed of GPIO updates. Valid range is 0..3 - GPIOSlowdown int -} - // HardwareConfig rgb-led-matrix configuration type HardwareConfig struct { // Rows the number of rows supported by the display, so 32 or 16. @@ -175,6 +170,8 @@ const MatrixEmulatorENV = "MATRIX_EMULATOR" func stringsToC(s []string) **C.char { cArray := C.malloc(C.size_t(len(s)) * C.size_t(unsafe.Sizeof(uintptr(0)))) + a := (*[len(s) - 1]*C.char)(cArray) + for idx, substring := range s { a[idx] = C.CString(substring) }