terrazzo.h (1559B)
1 /* Copyright 2020 ademey "MsMustard" 2 * 3 * This program is free software: you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17 #pragma once 18 19 #include "quantum.h" 20 21 enum terrazzo_matrix_effects { 22 TERRAZZO_NONE = 0, 23 // -------------------------------------- 24 // -----Begin led effect enum macros----- 25 #define TERRAZZO_EFFECT(name, ...) TERRAZZO_EFFECT_##name, 26 #include "terrazzo_effects/terrazzo_effects.inc" 27 #undef TERRAZZO_EFFECT 28 // -------------------------------------- 29 // -----End led effect enum macros------- 30 // All new effects go above this line 31 TERRAZZO_EFFECT_MAX 32 }; 33 34 enum terrazzo_keycodes { 35 TZ_NXT = QK_KB_0, 36 TZ_PRV, 37 TZ_OFF 38 }; 39 40 void terrazzo_render(void); 41 void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value); 42 void terrazzo_draw_at(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t image[]); 43 void terrazzo_scroll_pixel(bool clockwise); 44 void terrazzo_step_mode(void); 45 void terrazzo_step_mode_reverse(void); 46 void terrazzo_mode_off(void);