forked from forks/qmk_firmware
634ebc9763
Affects: - `qpockets/space_space/rev1` - `qpockets/space_space/rev2` - `quad_h/lb75` - `quantrik/kyuu` - `qwertlekeys/calice` - `rabbit/rabbit68` - `rainkeebs/delilah` - `rainkeebs/rainkeeb` - `rainkeebs/yasui` - `rart/rart45` - `rart/rart4x4` - `rart/rart60` - `rart/rart67` - `rart/rart67m` - `rart/rart75` - `rart/rart75m` - `rart/rartand` - `rart/rartland` - `rart/rartlice` - `rart/rartlite` - `rart/rartpad` - `rate/pistachio/rev1` - `rate/pistachio/rev2` - `rate/pistachio_mp` - `rate/pistachio_pro` - `redox/rev1` - `redscarf_iiplus/verb` - `redscarf_iiplus/verc` - `redscarf_iiplus/verd` - `retro_75` - `reversestudio/decadepad` - `reviung/reviung5` - `reviung/reviung33` - `reviung/reviung34` - `reviung/reviung39` - `reviung/reviung41` - `reviung/reviung53` - `rgbkb/zen/rev1` - `rgbkb/zen/rev2` - `rmi_kb/aelith` - `rmi_kb/chevron` - `rmi_kb/herringbone/pro` - `rmi_kb/herringbone/v1` - `rmi_kb/squishy65` - `rmi_kb/squishyfrl` - `rmi_kb/squishytkl` - `rmi_kb/wete/v1` - `rmi_kb/wete/v2` - `rocketboard_16` - `rominronin/katana60/rev1` - `rominronin/katana60/rev2` - `roseslite` - `rotr` - `rpiguy9907/southpaw66` - `rubi` - `rura66/rev1` - `ryanbaekr/rb1` - `ryanbaekr/rb18` - `ryanbaekr/rb69` - `ryanbaekr/rb86` - `ryanbaekr/rb87` - `ryanskidmore/rskeys100` - `ryloo_studio/m0110`
31 lines
1 KiB
C
31 lines
1 KiB
C
// Copyright 2021 Ryan Skidmore (@ryanskidmore, rskeys@ryanskidmore.co.uk)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
/* Key Matrix Sizes */
|
|
#define MATRIX_ROWS 6
|
|
#define MATRIX_COLS 24
|
|
|
|
/* Rows */
|
|
#define ROW_A D4
|
|
#define ROW_B C6
|
|
#define ROW_C D7
|
|
#define ROW_D E6
|
|
#define ROW_E B4
|
|
#define ROW_F B5
|
|
|
|
/* Columns 0 - 20 (24 with dummy columns for shift registers) */
|
|
#define SHR_LATCH B2
|
|
#define SHR_CLOCK B3
|
|
#define SHR_DATA B1
|
|
#define SHR_COLS { 0x000001, 0x000002, 0x000004, 0x000008, 0x000010, 0x000020, 0x000040, 0x000080, 0x000100, 0x000200, 0x000400, 0x000800, 0x001000, 0x002000, 0x004000, 0x008000, 0x010000, 0x020000, 0x040000, 0x080000, 0x100000, 0x200000, 0x400000, 0x800000 }
|
|
|
|
/* The shift registers on the matrix PCB output a signal on each column, which passes through the
|
|
* switch and a diode towards the row. The row is then connected to the AVR as an input. This means
|
|
* the diode direction is COL(umn) to ROW */
|
|
#define DIODE_DIRECTION COL2ROW
|
|
|
|
/* The number of RGB LEDs connected */
|
|
#define RGB_MATRIX_LED_COUNT 105
|