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