Add RGB support in via to launchpad (#8621)

Signed-off-by: Joshua Rubin <me@jawa.dev>
master
Joshua Rubin 2020-04-09 01:25:08 -06:00 committed by GitHub
parent be8443b35b
commit b5aa5e4338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 15 deletions

View File

@ -9,7 +9,7 @@
enum layer_names { enum layer_names {
_QWERTY, _QWERTY,
_FUNC, _FUNC,
_LAYER2, _RGB,
_LAYER3 _LAYER3
}; };
@ -34,7 +34,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_1, KC_2, KC_1, KC_2,
KC_3, KC_4, KC_3, KC_4,
KC_5, KC_6, KC_5, KC_6,
MO(_FUNC), KC_8 MO(_FUNC), TG(_RGB)
), ),
/* Function /* Function
@ -55,22 +55,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_C KC_TRNS, KC_C
), ),
/* Layer 2 /* RGB
* ,-------------. * ,-------------.
* | | | * | MODE-| MODE+|
* |------+------| * |------+------|
* | | | * | HUE- | HUE+ |
* |------+------| * |------+------|
* | | | * | SAT- | SAT+ |
* |------+------| * |------+------|
* | | | * |TOGGLE| |
* `-------------' * `-------------'
*/ */
[_LAYER2] = LAYOUT( [_RGB] = LAYOUT(
KC_TRNS, KC_TRNS, RGB_RMOD, RGB_MOD,
KC_TRNS, KC_TRNS, RGB_HUD, RGB_HUI,
KC_TRNS, KC_TRNS, RGB_SAD, RGB_SAI,
KC_TRNS, KC_TRNS RGB_TOG, KC_TRNS
), ),
/* Layer 3 /* Layer 3

View File

@ -1 +1,3 @@
VIA_ENABLE = yes VIA_ENABLE = yes
LINK_TIME_OPTIMIZATION_ENABLE = yes
RGBLIGHT_ENABLE = yes

View File

@ -15,8 +15,7 @@ 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/>.
*/ */
#ifndef REV1_CONFIG_H #pragma once
#define REV1_CONFIG_H
#include "../config.h" #include "../config.h"
@ -29,4 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW #define DIODE_DIRECTION COL2ROW
#endif #define RGBLED_NUM 10
#define RGB_DI_PIN F6
#define RGBLIGHT_ANIMATIONS