2022-03-08 04:45:30 +01:00
|
|
|
// Copyright 2022 Sergey Vlasov (@sigprof)
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "quantum.h"
|
|
|
|
|
2024-06-29 05:16:52 +02:00
|
|
|
// Supported orientations of the board.
|
2022-03-08 04:45:30 +01:00
|
|
|
enum winry315_orientation {
|
|
|
|
WINRY315_ORIENTATION_TOP, // Encoders at the top side (default)
|
|
|
|
WINRY315_ORIENTATION_LEFT, // Encoders at the left side
|
|
|
|
WINRY315_ORIENTATION_RIGHT, // Encoders at the right side
|
|
|
|
WINRY315_ORIENTATION_BOTTOM // Encoders at the bottom side
|
|
|
|
};
|
|
|
|
|
|
|
|
// Set the orientation of the board (changes the RGB Matrix effect behavior to
|
|
|
|
// match the new orientation).
|
|
|
|
//
|
2024-06-29 05:16:52 +02:00
|
|
|
// This function is intended to be used to configure the orientation
|
|
|
|
// dynamically. If you are making a custom keymap for one specific orientation,
|
|
|
|
// it is better to set the orientation in config.h
|
|
|
|
// (e.g., `#define WINRY315_DEFAULT_ORIENTATION WINRY315_ORIENTATION_LEFT`)
|
|
|
|
// instead of adding custom code that calls this function.
|
2022-03-08 04:45:30 +01:00
|
|
|
void winry315_set_orientation(uint8_t orientation);
|