Ran CLANG-FORMAT and sorted out any potential issues.

This commit is contained in:
EnviousData 2022-07-02 21:17:40 +01:00
parent d81dce7972
commit 9a99b46035
9 changed files with 71 additions and 61 deletions

View File

@ -40,8 +40,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { 11, 12, 13, 14, 15 }
#define MATRIX_COL_PINS { 10, 9, 8, 7, 6, 5, 16, 17, 18, 19, 20, 21, 22, 26, 27 }
#define MATRIX_ROW_PINS \
{ 11, 12, 13, 14, 15 }
#define MATRIX_COL_PINS \
{ 10, 9, 8, 7, 6, 5, 16, 17, 18, 19, 20, 21, 22, 26, 27 }
#define UNUSED_PINS
/* COL2ROW, ROW2COL */

View File

@ -2,8 +2,10 @@
#pragma once
#define VIAL_KEYBOARD_UID {0x96, 0x81, 0x7A, 0x4C, 0xCA, 0xED, 0xA7, 0x6B}
#define VIAL_KEYBOARD_UID \
{ 0x96, 0x81, 0x7A, 0x4C, 0xCA, 0xED, 0xA7, 0x6B }
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 13 }
#define VIAL_UNLOCK_COMBO_ROWS \
{ 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS \
{ 0, 13 }

View File

@ -45,8 +45,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { GP21, GP20, GP19, GP18, GP17 }
#define MATRIX_COL_PINS { GP0, GP1, GP2, GP3, GP4, GP5, GP6, GP7, GP8, GP9, GP10, GP11, GP12, GP13, GP14, GP15, GP16 }
#define MATRIX_ROW_PINS \
{ GP21, GP20, GP19, GP18, GP17 }
#define MATRIX_COL_PINS \
{ GP0, GP1, GP2, GP3, GP4, GP5, GP6, GP7, GP8, GP9, GP10, GP11, GP12, GP13, GP14, GP15, GP16 }
#define UNUSED_PINS
/* COL2ROW, ROW2COL */

View File

@ -30,8 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROWS 3
#define MATRIX_COLS 4
/*
* Keyboard Matrix Assignments
*
@ -43,8 +41,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#define MATRIX_ROW_PINS { GP4, GP11, GP15 }
#define MATRIX_COL_PINS { GP18, GP19, GP20, GP21 }
#define MATRIX_ROW_PINS \
{ GP4, GP11, GP15 }
#define MATRIX_COL_PINS \
{ GP18, GP19, GP20, GP21 }
#define UNUSED_PINS
/* COL2ROW, ROW2COL */

View File

@ -2,8 +2,10 @@
#pragma once
#define VIAL_KEYBOARD_UID {0xA4, 0x13, 0x53, 0xAF, 0xD2, 0x3D, 0x62, 0x66}
#define VIAL_KEYBOARD_UID \
{ 0xA4, 0x13, 0x53, 0xAF, 0xD2, 0x3D, 0x62, 0x66 }
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 13 }
#define VIAL_UNLOCK_COMBO_ROWS \
{ 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS \
{ 0, 13 }

View File

@ -44,8 +44,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { 20, 21, 22, 26, 27, 28 }
#define MATRIX_COL_PINS { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 18, 17, 16 }
#define MATRIX_ROW_PINS \
{ 20, 21, 22, 26, 27, 28 }
#define MATRIX_COL_PINS \
{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 18, 17, 16 }
#define UNUSED_PINS
/* COL2ROW, ROW2COL */

View File

@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "config_common.h"
/* USB Device descriptor parameter */
#define PRODUCT Delirium TKL Rev 1.0+
#define PRODUCT Delirium TKL Rev 1.0 +
#define VENDOR_ID 0x2E8A
#define PRODUCT_ID 0xE739
#define DEVICE_VER 0x0001
@ -44,8 +44,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { 20, 21, 22, 26, 27, 28 }
#define MATRIX_COL_PINS { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 18, 17, 16 }
#define MATRIX_ROW_PINS \
{ 20, 21, 22, 26, 27, 28 }
#define MATRIX_COL_PINS \
{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 18, 17, 16 }
#define UNUSED_PINS
/* COL2ROW, ROW2COL */

View File

@ -2,8 +2,10 @@
#pragma once
#define VIAL_KEYBOARD_UID {0xC3, 0x73, 0xA9, 0xCA, 0xD8, 0x79, 0xAF, 0xC5}
#define VIAL_KEYBOARD_UID \
{ 0xC3, 0x73, 0xA9, 0xCA, 0xD8, 0x79, 0xAF, 0xC5 }
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 13 }
#define VIAL_UNLOCK_COMBO_ROWS \
{ 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS \
{ 0, 13 }

View File

@ -26,8 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MANUFACTURER EnviousDesign
#define PRODUCT ALT Delirium RGB
/* key matrix size */
#define MATRIX_ROWS 6
#define MATRIX_COLS 18
@ -72,14 +70,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define RGB_DI_PIN
#define RGB_DI_PIN GP0
//#ifdef RGB_DI_PIN
# define RGBLED_NUM 88
# define RGBLIGHT_HUE_STEP 1
# define RGBLIGHT_SAT_STEP 1
# define RGBLIGHT_VAL_STEP 1
# define RGBLIGHT_LIMIT_VAL 64 /* The maximum brightness level */
# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
#define RGBLED_NUM 88
#define RGBLIGHT_HUE_STEP 1
#define RGBLIGHT_SAT_STEP 1
#define RGBLIGHT_VAL_STEP 1
#define RGBLIGHT_LIMIT_VAL 64 /* The maximum brightness level */
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
/*== all animations enable ==*/
# define RGBLIGHT_ANIMATIONS
#define RGBLIGHT_ANIMATIONS
/*== or choose animations ==*/
//# define RGBLIGHT_EFFECT_BREATHING
//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
@ -171,7 +169,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// The number of LEDs connected
#define DRIVER_LED_TOTAL 88
#ifdef RGB_MATRIX_ENABLE
# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
# define ENABLE_RGB_MATRIX_ALPHAS_MODS
@ -220,7 +217,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
#endif
//some config bits
// some config bits
//#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
//#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
#define RGB_DISABLE_AFTER_TIMEOUT 900 // number of ticks to wait until disabling effects (ticks seem to be 1 per second on my RP2040)
@ -230,4 +227,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 64
#define EECONFIG_RGB_MATRIX (uint32_t *)28