Modifications on NeoMatrix library to fit the recent Mbed system

Dependents:   4180_final_project_github

Files at this revision

API Documentation at this revision

Comitter:
oscargao
Date:
Wed Dec 02 18:17:05 2020 +0000
Parent:
3:9a2779957e46
Commit message:
made it work

Changed in this revision

NeoMatrix.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9a2779957e46 -r f5c7124c262f NeoMatrix.cpp
--- a/NeoMatrix.cpp	Tue Mar 17 05:46:34 2015 +0000
+++ b/NeoMatrix.cpp	Wed Dec 02 18:17:05 2020 +0000
@@ -47,7 +47,7 @@
         N = 0;
     }
     
-    gpio_init(&gpio, pin, PIN_OUTPUT);      // initialize GPIO registers
+    gpio_init_out(&gpio, pin);              // initialize GPIO registers
     neo_fio_reg = (uint32_t)gpio.reg_dir;   // set registers and bitmask for
     neo_bitmask = 1 << ((int)pin & 0x1F);   // the assembly to use
 }