diff options
author | bspsbee <38793669+bspsbee@users.noreply.github.com> | 2018-04-28 04:52:15 -1000 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-04-28 07:52:15 -0700 |
commit | 01a85b780c3cea3ca2f585e547f376a82859712f (patch) | |
tree | 30fa023bb656fa87a1496212c3d12b2219235fa9 /keyboards/ut47/matrix.c | |
parent | 4afd970dc4345bdae95211d541cca5f203218578 (diff) | |
download | firmware-01a85b780c3cea3ca2f585e547f376a82859712f.tar.gz firmware-01a85b780c3cea3ca2f585e547f376a82859712f.tar.bz2 firmware-01a85b780c3cea3ca2f585e547f376a82859712f.zip |
Add RGB keymap to UT47 (#2826)
* Create readme.md
* RGB keymap
* Update matrix.c
Remove serial when not used.
Diffstat (limited to 'keyboards/ut47/matrix.c')
-rw-r--r-- | keyboards/ut47/matrix.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboards/ut47/matrix.c b/keyboards/ut47/matrix.c index 18d420dbb..921bc9ed5 100644 --- a/keyboards/ut47/matrix.c +++ b/keyboards/ut47/matrix.c @@ -26,7 +26,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "debug.h" #include "util.h" #include "matrix.h" -#include "protocol/serial.h" +#ifdef LED_ENABLE + #include "protocol/serial.h" +#endif #ifndef DEBOUNCE @@ -67,8 +69,10 @@ void matrix_init(void) matrix[i] = 0; matrix_debouncing[i] = 0; } - + +#ifdef LED_ENABLE serial_init(); +#endif } uint8_t matrix_scan(void) |