Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RGB support in via to launchpad #8621

Merged
merged 1 commit into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions keyboards/launchpad/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
enum layer_names {
_QWERTY,
_FUNC,
_LAYER2,
_RGB,
_LAYER3
};

Expand All @@ -34,7 +34,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_1, KC_2,
KC_3, KC_4,
KC_5, KC_6,
MO(_FUNC), KC_8
MO(_FUNC), TG(_RGB)
),

/* Function
Expand All @@ -55,22 +55,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_C
),

/* Layer 2
/* RGB
* ,-------------.
* | | |
* | MODE-| MODE+|
* |------+------|
* | | |
* | HUE- | HUE+ |
* |------+------|
* | | |
* | SAT- | SAT+ |
* |------+------|
* | | |
* |TOGGLE| |
* `-------------'
*/
[_LAYER2] = LAYOUT(
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS
[_RGB] = LAYOUT(
RGB_RMOD, RGB_MOD,
RGB_HUD, RGB_HUI,
RGB_SAD, RGB_SAI,
RGB_TOG, KC_TRNS
),

/* Layer 3
Expand Down
2 changes: 2 additions & 0 deletions keyboards/launchpad/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VIA_ENABLE = yes
LINK_TIME_OPTIMIZATION_ENABLE = yes
RGBLIGHT_ENABLE = yes
7 changes: 4 additions & 3 deletions keyboards/launchpad/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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/>.
*/

#ifndef REV1_CONFIG_H
#define REV1_CONFIG_H
#pragma once
joshuarubin marked this conversation as resolved.
Show resolved Hide resolved

#include "../config.h"

Expand All @@ -29,4 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define DIODE_DIRECTION COL2ROW

#endif
#define RGBLED_NUM 10
#define RGB_DI_PIN F6
#define RGBLIGHT_ANIMATIONS