Fix VIA compilation issues for RGB Matrix (#13503)

This commit is contained in:
Drashna Jaelre 2021-07-09 18:32:56 -07:00 committed by GitHub
parent baa65d2177
commit 09474cbf04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,31 +16,24 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once #pragma once
//#define USE_MATRIX_I2C
#ifdef KEYBOARD_crkbd_rev1_legacy
# undef USE_I2C
# define USE_SERIAL
#endif
/* Select hand configuration */ /* Select hand configuration */
#define MASTER_LEFT #define MASTER_LEFT
// #define MASTER_RIGHT // #define MASTER_RIGHT
// #define EE_HANDS // #define EE_HANDS
#define USE_SERIAL_PD2 #ifdef RGBLIGHT_ENABLE
# undef RGBLED_NUM
# define RGBLIGHT_ANIMATIONS
#undef RGBLED_NUM # define RGBLED_NUM 54
#define RGBLIGHT_ANIMATIONS # define RGBLED_SPLIT \
#define RGBLED_NUM 27 { 27, 27 }
#define RGBLIGHT_LIMIT_VAL 120 # define RGBLIGHT_LIMIT_VAL 120
#define RGBLIGHT_HUE_STEP 10 # define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 17 # define RGBLIGHT_SAT_STEP 17
#define RGBLIGHT_VAL_STEP 17 # define RGBLIGHT_VAL_STEP 17
#endif
#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c" #define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c"