This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"includePath": [ | |
"/usr/include", | |
"/usr/local/include", | |
"${workspaceRoot}" | |
], | |
"defines": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/common_features.mk b/common_features.mk | |
index 6c835abde..65ff6b5b3 100644 | |
--- a/common_features.mk | |
+++ b/common_features.mk | |
@@ -115,7 +115,7 @@ ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | |
endif | |
RGB_MATRIX_ENABLE ?= no | |
-VALID_MATRIX_TYPES := yes IS31FL3731L IS31FL3733L custom | |
+VALID_MATRIX_TYPES := yes IS31FL3731 IS31FL3733 custom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum custom_keycodes { | |
MY_CUSTOM_MACRO = SAFE_RANGE | |
}; | |
//... | |
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
switch(keycode) { | |
case MY_CUSTOM_MACRO: | |
if (record->event.pressed) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"includePath": [ | |
"/usr/include", | |
"/usr/local/include", | |
"${workspaceFolder}" | |
], | |
"defines": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"includePath": [ | |
"/usr/include", | |
"/usr/local/include", | |
"${workspaceFolder}" | |
], | |
"defines": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2021 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include QMK_KEYBOARD_H | |
#include "dancing_brackets.h" | |
void tap_dance_dancing_bracket_on_each_tap(qk_tap_dance_state_t *state, void *user_data) { | |
if (state->count > 3) { | |
// There can't be reached any other state here. Stop tap dance. | |
timer_clear(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define ENABLE_RGB_MATRIX_ALPHAS_MODS | |
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN | |
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | |
#define ENABLE_RGB_MATRIX_CYCLE_ALL | |
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | |
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | |
#define ENABLE_RGB_MATRIX_RAINDROPS | |
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | |
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | |
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "transactions.h" | |
#include <string.h> | |
bool is_caps_on = false; | |
void user_sync_a_slave_handler(uint8_t in_buflen, const void* in_data, uint8_t out_buflen, void* out_data) { | |
// if buffer length matches size of data structure (simple error checking) | |
if (in_buflen == sizeof(is_caps_on)) { | |
// copy data from master into local data structure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef union { | |
uint32_t raw; | |
struct { | |
bool rgb_matrix_ledmap_active :1; | |
}; | |
} user_runtime_config_t; | |
user_runtime_config_t user_state; | |
void user_sync_a_slave_handler(uint8_t in_buflen, const void* in_data, uint8_t out_buflen, void* out_data) { |
OlderNewer