logo

qmk_firmware

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

winry315.h (953B)


  1. // Copyright 2022 Sergey Vlasov (@sigprof)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "quantum.h"
  5. // Supported orientations of the board.
  6. enum winry315_orientation {
  7. WINRY315_ORIENTATION_TOP, // Encoders at the top side (default)
  8. WINRY315_ORIENTATION_LEFT, // Encoders at the left side
  9. WINRY315_ORIENTATION_RIGHT, // Encoders at the right side
  10. WINRY315_ORIENTATION_BOTTOM // Encoders at the bottom side
  11. };
  12. // Set the orientation of the board (changes the RGB Matrix effect behavior to
  13. // match the new orientation).
  14. //
  15. // This function is intended to be used to configure the orientation
  16. // dynamically. If you are making a custom keymap for one specific orientation,
  17. // it is better to set the orientation in config.h
  18. // (e.g., `#define WINRY315_DEFAULT_ORIENTATION WINRY315_ORIENTATION_LEFT`)
  19. // instead of adding custom code that calls this function.
  20. void winry315_set_orientation(uint8_t orientation);