skylark-qmk/keyboards/marksard/rhymestone/rev1/rev1.c
marksard 6e32dd123f
[Keyboard] add rhymestone by marksard (#9708)
* Keyboard: add treeadstone48

* rename layout defines

* Use of pragma once

* move common include code

* fixed info.json

* change keymap layout from kc to normal

* fix alpha revision keymap

* fixed info.json

* remove USE_Link_Time_Optimization

* Add keyboard the Rhymestone

* fixed by PR review

* fixed by review

* Update keyboards/rhymestone/readme.md

fixed

* Fixed possible changes to oled_write_P

* Change the name of the layout definition

* Update keyboards/rhymestone/info.json

* Update keyboards/rhymestone/keymaps/default/keymap.c

* Update keyboards/rhymestone/keymaps/default/keymap.c

* Update keyboards/rhymestone/keymaps/default/keymap.c

* Update keyboards/rhymestone/keymaps/default/keymap.c

* Update keyboards/rhymestone/keymaps/switch_tester/keymap.c

* Update keyboards/rhymestone/keymaps/switch_tester/keymap.c

* Update keyboards/rhymestone/rev1/rev1.h

* add empty rules.mk in rev1

* Update from other review

* Update keyboards/rhymestone/rules.mk

* fixed other review

* move rhymestone to marksard directory

* move rhymestone to marksard directory (Commit the necessary modifications)

* remove
2020-09-04 04:14:34 -07:00

108 lines
3.6 KiB
C

/* Copyright 2020 marksard
*
* 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 <http://www.gnu.org/licenses/>.
*/
#include "rev1.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {
{ 10, 11, 12, 13, 0 },
{ 9, 18, 19, 14, 1 },
{ 8, 17, 16, 15, 2 },
{ 7, 6, 5, 4, 3 },
{ 30, 31, 32, 33, 20 },
{ 29, 38, 39, 34, 21 },
{ 28, 37, 36, 35, 22 },
{ 27, 26, 25, 24, 23 }
}, {
{ 100, 0 }, { 100, 21 }, { 100, 43 }, { 100, 64 },
{ 75, 64 }, { 50, 64 }, { 25, 64 }, { 0, 64 },
{ 0, 43 }, { 0, 21 }, { 0, 0 },
{ 25, 0 }, { 50, 0 }, { 75, 0 },
{ 75, 21 }, { 75, 43 },
{ 50, 43 }, { 25, 43 },
{ 25, 21 }, { 50, 21 },
{ 125, 0 }, { 125, 21 }, { 125, 43 }, { 125, 64 },
{ 150, 64 }, { 175, 64 }, { 200, 64 }, { 225, 64 },
{ 225, 43 }, { 225, 21 }, { 225, 0 },
{ 200, 0 }, { 175, 0 }, { 150, 0 },
{ 150, 21 }, { 150, 43 },
{ 175, 43 }, { 200, 43 },
{ 200, 21 }, { 150, 21 }
}, {
4, 4, 4, 1,
1, 1, 1, 1,
4, 4, 4, 4,
4, 4, 4, 4,
4, 4, 4, 4,
4, 4, 4, 1,
1, 1, 1, 1,
4, 4, 4, 4,
4, 4, 4, 4,
4, 4, 4, 4
} };
#endif
__attribute__((weak))
void matrix_init_user(void) {}
void matrix_init_kb(void) {
#ifdef RGB_MATRIX_ENABLE
// if (!is_keyboard_master()) {
// g_led_config = (led_config_t){ {
// { 30, 31, 32, 33, 20 },
// { 29, 38, 39, 34, 21 },
// { 28, 37, 36, 35, 22 },
// { 27, 26, 25, 24, 23 },
// { 10, 11, 12, 13, 0 },
// { 9, 18, 19, 14, 1 },
// { 8, 17, 16, 15, 2 },
// { 7, 6, 5, 4, 3 }
// }, {
// { 125, 0 }, { 125, 21 }, { 125, 43 }, { 125, 64 },
// { 150, 64 }, { 175, 64 }, { 200, 64 }, { 225, 64 },
// { 225, 43 }, { 225, 21 }, { 225, 0 },
// { 200, 0 }, { 175, 0 }, { 150, 0 },
// { 150, 21 }, { 150, 43 },
// { 175, 43 }, { 200, 43 },
// { 200, 21 }, { 150, 21 },
// { 100, 0 }, { 100, 21 }, { 100, 43 }, { 100, 64 },
// { 75, 64 }, { 50, 64 }, { 25, 64 }, { 0, 64 },
// { 0, 43 }, { 0, 21 }, { 0, 0 },
// { 25, 0 }, { 50, 0 }, { 75, 0 },
// { 75, 21 }, { 75, 43 },
// { 50, 43 }, { 25, 43 },
// { 25, 21 }, { 50, 21 }
// }, {
// 4, 4, 4, 1,
// 1, 1, 1, 1,
// 4, 4, 4, 4,
// 4, 4, 4, 4,
// 4, 4, 4, 4,
// 4, 4, 4, 1,
// 1, 1, 1, 1,
// 4, 4, 4, 4,
// 4, 4, 4, 4,
// 4, 4, 4, 4
// } };
// }
#endif
matrix_init_user();
}