logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

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. #pragma once
  17. #include "quantum.h"
  18. enum terrazzo_matrix_effects {
  19. TERRAZZO_NONE = 0,
  20. // --------------------------------------
  21. // -----Begin led effect enum macros-----
  22. #define TERRAZZO_EFFECT(name, ...) TERRAZZO_EFFECT_##name,
  23. #include "terrazzo_effects/terrazzo_effects.inc"
  24. #undef TERRAZZO_EFFECT
  25. // --------------------------------------
  26. // -----End led effect enum macros-------
  27. // All new effects go above this line
  28. TERRAZZO_EFFECT_MAX
  29. };
  30. enum terrazzo_keycodes {
  31. TZ_NXT = QK_KB_0,
  32. TZ_PRV,
  33. TZ_OFF
  34. };
  35. void terrazzo_render(void);
  36. void terrazzo_set_pixel(uint8_t x, uint8_t y, uint8_t value);
  37. void terrazzo_draw_at(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t image[]);
  38. void terrazzo_scroll_pixel(bool clockwise);
  39. void terrazzo_step_mode(void);
  40. void terrazzo_step_mode_reverse(void);
  41. void terrazzo_mode_off(void);