From 7ae9dbca1d1551e397b256aa3864460775802db4 Mon Sep 17 00:00:00 2001 From: Jeayo Keh Date: Wed, 15 Feb 2023 05:11:45 +0800 Subject: =?UTF-8?q?[Keyboard]=20add=20=E2=80=98soda/pocket=E2=80=99=20(#19?= =?UTF-8?q?838)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Drashna Jaelre Co-authored-by: jack <0x6a73@protonmail.com> --- keyboards/soda/pocket/pocket.c | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 keyboards/soda/pocket/pocket.c (limited to 'keyboards/soda/pocket/pocket.c') diff --git a/keyboards/soda/pocket/pocket.c b/keyboards/soda/pocket/pocket.c new file mode 100644 index 0000000000..18a203b8c0 --- /dev/null +++ b/keyboards/soda/pocket/pocket.c @@ -0,0 +1,48 @@ +/* +Copyright 2015 Álvaro "Gondolindrim" Volpato + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "pocket.h" + +#ifdef RGB_MATRIX_ENABLE + +// RGB Matrix +led_config_t g_led_config = { + { + // Key Matrix to LED Index + { 0, 1, 2, 3 , 4, 5, 6}, + { 7, 8, 9, 10, 11, 12, 13 }, + { 14, 15, 16, 17, 18, 19, NO_LED }, + { NO_LED, NO_LED, NO_LED, 20, 21, 22, 23 }, + { NO_LED, 24, NO_LED, 25, 26, 27, NO_LED }, + { 28, 29, 30, NO_LED, 31, 32, 33 } + }, { + {0, 0}, {37, 0}, {74, 0}, {112, 0}, {149, 0}, {186, 0}, {224, 0}, + {0, 12}, {37, 12}, {74, 12}, {112, 12}, {149, 12}, {186, 12}, {224, 12}, + {0, 24}, {37, 24}, {74, 24}, {112, 17}, {149, 17}, {186, 17}, + {112, 38}, {149, 38}, {186, 38}, {224, 38}, + {37, 51}, {112, 51}, {149, 51}, {186, 51}, + {0, 64}, {37, 64}, {74, 64}, {149, 64}, {186, 64}, {224, 64} + }, { + 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, + 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4 + } +}; +#endif -- cgit v1.2.3