mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-24 04:12:56 +00:00
d689f76110
* Ciao Terrazzo! * Keymap updates * Adding info json Cleaning up keymap files Readme updates with template * Coding style updates * Removing vscode files * PR feedback updates * biton32 -> get_highest_layer update Adding license headers
162 lines
3.5 KiB
C
162 lines
3.5 KiB
C
/* Copyright 2020 ademey "MsMustard"
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
#ifndef DISABLE_TERRAZZO_EFFECT_DINO
|
|
TERRAZZO_EFFECT(DINO)
|
|
# ifdef TERRAZZO_EFFECT_IMPLS
|
|
|
|
static uint8_t dino_frames[2][56] = {
|
|
{
|
|
0, 0, 0, 9, 9, 9, 9,
|
|
0, 0, 0, 9, 0, 9, 9,
|
|
9, 0, 0, 9, 9, 9, 9,
|
|
9, 9, 9, 9, 9, 0, 0,
|
|
9, 9, 9, 9, 9, 0, 0,
|
|
0, 9, 9, 9, 0, 0, 0,
|
|
0, 9, 0, 9, 9, 0, 0,
|
|
0, 9, 9, 0, 0, 0, 0
|
|
},
|
|
{
|
|
0, 0, 0, 9, 9, 9, 9,
|
|
0, 0, 0, 9, 0, 9, 9,
|
|
9, 0, 0, 9, 9, 9, 9,
|
|
9, 9, 9, 9, 9, 0, 0,
|
|
9, 9, 9, 9, 9, 0, 0,
|
|
0, 9, 9, 9, 0, 0, 0,
|
|
0, 9, 0, 9, 0, 0, 0,
|
|
0, 0, 0, 9, 9, 0, 0
|
|
}
|
|
};
|
|
|
|
static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