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

Adding Unextended Standard PCB #20190

Merged
merged 65 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
4822ba3
enable rgb underglow for VIA-firmware
Jan 31, 2021
95d87c6
Merge remote-tracking branch 'upstream/master'
Feb 25, 2021
6d1ca39
Merge remote-tracking branch 'upstream/master'
Apr 5, 2021
1bb162a
update master branch from remote
Apr 5, 2021
e32af47
Merge remote-tracking branch 'upstream/master'
Apr 14, 2021
baa29b1
Merge remote-tracking branch 'upstream/master'
Apr 29, 2021
3d4c946
cont
Apr 29, 2021
456835e
Merge remote-tracking branch 'upstream/master'
May 25, 2021
7564a8f
Merge remote-tracking branch 'upstream/master'
Jun 21, 2021
92f7266
Merge remote-tracking branch 'upstream/master'
Jun 23, 2021
a619d57
Merge remote-tracking branch 'upstream/master'
Aug 29, 2021
d31268c
Merge remote-tracking branch 'upstream/master'
4pplet Sep 20, 2021
475cd46
Merge remote-tracking branch 'upstream/master'
4pplet Sep 22, 2021
cd4f7e9
Merge remote-tracking branch 'upstream/master'
4pplet Oct 4, 2021
32eb4bf
Merge remote-tracking branch 'upstream/master'
4pplet Dec 28, 2021
8a8921c
Merge remote-tracking branch 'upstream/master'
4pplet Feb 3, 2022
5d58560
Merge remote-tracking branch 'upstream/master'
4pplet Feb 22, 2022
40aef4b
Merge remote-tracking branch 'upstream/master'
4pplet Feb 28, 2022
308b2f2
Merge branch 'master' of https://github.com/4pplet/qmk_firmware
4pplet Feb 28, 2022
1fd4987
Added build command for rev c and bootloader instruction in the main …
4pplet Mar 22, 2022
ff49df5
Merge remote-tracking branch 'upstream/master'
4pplet Apr 2, 2022
86365b8
Merge remote-tracking branch 'upstream/master'
4pplet Apr 23, 2022
1ea2c7b
Merge remote-tracking branch 'upstream/master'
4pplet May 15, 2022
9be56a8
Merge remote-tracking branch 'upstream/master'
4pplet Jun 15, 2022
e14011f
Merge branch 'master' of https://github.com/4pplet/qmk_firmware
4pplet Jun 15, 2022
e73f608
Merge remote-tracking branch 'upstream/master'
4pplet Jul 23, 2022
aaca0ae
Merge remote-tracking branch 'upstream/master'
4pplet Aug 20, 2022
4488505
Merge remote-tracking branch 'upstream/master'
4pplet Aug 29, 2022
fb35260
Merge remote-tracking branch 'upstream/master'
4pplet Sep 7, 2022
f1c44c4
Merge remote-tracking branch 'upstream/master'
4pplet Oct 3, 2022
df962d1
Merge remote-tracking branch 'upstream/master' into add_viper_eagle_r…
4pplet Oct 4, 2022
e6b2459
Squashed commit of the following:
4pplet Oct 4, 2022
3b70eb0
Merge remote-tracking branch 'upstream/master'
4pplet Oct 10, 2022
c649909
Merge remote-tracking branch 'upstream/master'
4pplet Oct 15, 2022
d690de4
Merge branch 'master' into add_viper_eagle_rev_b
4pplet Oct 17, 2022
a5e667e
Merge remote-tracking branch 'upstream/master'
4pplet Nov 3, 2022
c5cd539
Merge remote-tracking branch 'upstream/master'
4pplet Nov 14, 2022
5c903d2
Update keyboards/4pplet/eagle_viper_rep/rev_b/rev_b.c
4pplet Nov 20, 2022
2328b59
Simplifying led-code and using proper lock LED indicator defines
4pplet Nov 20, 2022
2b320c9
Removing RGBLIGHT_ANIMATIONS define for revision A
4pplet Nov 30, 2022
66748cb
Merge remote-tracking branch 'upstream/master' into add_viper_eagle_r…
4pplet Dec 4, 2022
fc86f09
Merge branch 'add_viper_eagle_rev_b' of https://github.com/4pplet/qmk…
4pplet Dec 4, 2022
641a2a9
Merge remote-tracking branch 'upstream/master'
4pplet Dec 4, 2022
7f4f094
Merge branch 'add_viper_eagle_rev_b'
4pplet Dec 4, 2022
47af1c1
start
4pplet Dec 9, 2022
6a30174
cont
4pplet Dec 10, 2022
1986c51
Merge remote-tracking branch 'upstream/master'
4pplet Dec 10, 2022
2643b50
Merge branch 'master' into ASK
4pplet Dec 10, 2022
ea2cab9
Update rev_a.c
4pplet Dec 16, 2022
1d16169
Update info.json
4pplet Dec 19, 2022
302cdea
Merge remote-tracking branch 'upstream/master' into ASK
4pplet Jan 6, 2023
bca1661
cont
4pplet Feb 2, 2023
d6e36ce
cont
4pplet Feb 2, 2023
779adf2
cont
4pplet Feb 16, 2023
99a8945
Update info.json
4pplet Feb 19, 2023
74a2b1e
cont
4pplet Feb 19, 2023
4cbe018
cont
4pplet Feb 19, 2023
f58da60
Update info.json
4pplet Feb 19, 2023
70f11d7
cont
4pplet Feb 21, 2023
c8c851f
Merge remote-tracking branch 'upstream/master' into ASK
4pplet Mar 18, 2023
8af8559
updating to data driven
4pplet Mar 18, 2023
7dde5c9
Update keymap.c
4pplet Mar 19, 2023
a368bc4
adding flashing example
4pplet Mar 19, 2023
fea4b90
update readme to align with the template
4pplet Mar 19, 2023
2a2e08a
Moving more into info.json
4pplet Mar 21, 2023
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
Prev Previous commit
Next Next commit
Squashed commit of the following:
commit b338142
Author: 4pplet <[email protected]>
Date:   Tue Oct 4 11:58:47 2022 +0200

    Delete chconf.h

commit 107b979
Author: 4pplet <[email protected]>
Date:   Mon Oct 3 22:11:01 2022 +0200

    cont

commit ab054d8
Author: 4pplet <[email protected]>
Date:   Mon Oct 3 14:38:13 2022 +0200

    Update config.h

commit 05c1347
Author: 4pplet <[email protected]>
Date:   Mon Oct 3 14:04:46 2022 +0200

    cont

commit a31c426
Author: 4pplet <[email protected]>
Date:   Mon Oct 3 13:20:24 2022 +0200

    cont

commit d6aa839
Author: 4pplet <[email protected]>
Date:   Fri Sep 23 09:32:47 2022 +0200

    cont, compiles but not tested on hardware

commit f5a45ce
Author: 4pplet <[email protected]>
Date:   Thu Sep 22 18:12:10 2022 +0200

    cont

commit 2f5ab00
Author: 4pplet <[email protected]>
Date:   Wed Sep 21 23:13:55 2022 +0200

    initial commit
  • Loading branch information
4pplet committed Oct 4, 2022
commit e6b2459966df7842c38f63aa70df4ab191a503d1
76 changes: 76 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
Copyright 2022 Stefan Sundin "4pplet" <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#pragma once

#define MATRIX_ROWS 10
#define MATRIX_COLS 7

#define MATRIX_COL_PINS { A0, A3, A4, A7, B5, B4, B3 }
#define MATRIX_ROW_PINS { A2, A1, B8, A10, C15, A15, B7, B6, C14, C13}
#define DIODE_DIRECTION COL2ROW

/* In switch leds */
#define BACKLIGHT_PIN A6
#define BACKLIGHT_PWM_DRIVER PWMD3
#define BACKLIGHT_PWM_CHANNEL 1
#define BACKLIGHT_PAL_MODE 1
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 6
#define BACKLIGHT_ON_STATE 1

/* Underglow */
#define RGBLED_NUM 16
#define WS2812_EXTERNAL_PULLUP
#define RGB_DI_PIN A8

#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE
#define RGBLIGHT_EFFECT_KNIGHT
#define RGBLIGHT_EFFECT_CHRISTMAS
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

/* Indicator leds */
#define LOCK_LIGHTS TRUE
#define DISPLAY_LAYERS TRUE
#define CAPS_PIN B1
#define NUM_PIN B12
#define SCROLL_PIN B13
#define LAYER_1 B14
#define LAYER_2 B15
#define LAYER_3 B0
#define LAYER_4 B9
#define LAYER_5 A9

/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5

/* Added extra layer for use of layer leds */
#define DYNAMIC_KEYMAP_LAYER_COUNT 5
25 changes: 25 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
Copyright 2022 Stefan Sundin "4pplet" <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#pragma once

#define HAL_USE_I2C FALSE

#define HAL_USE_PWM TRUE

#define HAL_USE_SPI FALSE

#include_next <halconf.h>
16 changes: 16 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"keyboard_name": "Eagle Viper REP Rev B",
"manufacturer": "4pplet",
"url": "https://github.com/4pplet/eagle_viper_rep",
"maintainer": "4pplet",
"usb": {
"vid": "0x4444",
"pid": "0x0010",
"device_version": "0.0.2"
},
"layouts": {
"LAYOUT": {
"layout": [{"label":"0,0", "x":0, "y":0}, {"label":"1,0", "x":1, "y":0}, {"label":"0,1", "x":2, "y":0}, {"label":"1,1", "x":3, "y":0}, {"label":"0,2", "x":4, "y":0}, {"label":"1,2", "x":5, "y":0}, {"label":"0,3", "x":6, "y":0}, {"label":"1,3", "x":7, "y":0}, {"label":"0,4", "x":8, "y":0}, {"label":"1,4", "x":9, "y":0}, {"label":"0,5", "x":10, "y":0}, {"label":"1,5", "x":11, "y":0}, {"label":"0,6", "x":12, "y":0}, {"label":"1,6", "x":13, "y":0}, {"label":"3,6", "x":14, "y":0}, {"label":"2,0", "x":0, "y":1, "w":1.5}, {"label":"3,0", "x":1.5, "y":1}, {"label":"2,1", "x":2.5, "y":1}, {"label":"3,1", "x":3.5, "y":1}, {"label":"2,2", "x":4.5, "y":1}, {"label":"3,2", "x":5.5, "y":1}, {"label":"2,3", "x":6.5, "y":1}, {"label":"3,3", "x":7.5, "y":1}, {"label":"2,4", "x":8.5, "y":1}, {"label":"3,4", "x":9.5, "y":1}, {"label":"2,5", "x":10.5, "y":1}, {"label":"3,5", "x":11.5, "y":1}, {"label":"2,6", "x":12.5, "y":1}, {"label":"5,6", "x":13.5, "y":1, "w":1.5}, {"label":"4,0", "x":0, "y":2, "w":1.75}, {"label":"5,0", "x":1.75, "y":2}, {"label":"4,1", "x":2.75, "y":2}, {"label":"5,1", "x":3.75, "y":2}, {"label":"4,2", "x":4.75, "y":2}, {"label":"5,2", "x":5.75, "y":2}, {"label":"4,3", "x":6.75, "y":2}, {"label":"5,3", "x":7.75, "y":2}, {"label":"4,4", "x":8.75, "y":2}, {"label":"5,4", "x":9.75, "y":2}, {"label":"4,5", "x":10.75, "y":2}, {"label":"5,5", "x":11.75, "y":2}, {"label":"4,6", "x":12.75, "y":2}, {"label":"7,6", "x":13.75, "y":2, "w":1.25}, {"label":"6,0", "x":0, "y":3, "w":1.25}, {"label":"7,0", "x":1.25, "y":3}, {"label":"6,1", "x":2.25, "y":3}, {"label":"7,1", "x":3.25, "y":3}, {"label":"6,2", "x":4.25, "y":3}, {"label":"7,2", "x":5.25, "y":3}, {"label":"6,3", "x":6.25, "y":3}, {"label":"7,3", "x":7.25, "y":3}, {"label":"6,4", "x":8.25, "y":3}, {"label":"7,4", "x":9.25, "y":3}, {"label":"6,5", "x":10.25, "y":3}, {"label":"7,5", "x":11.25, "y":3}, {"label":"6,6", "x":12.25, "y":3, "w":1.75}, {"label":"9,6", "x":14, "y":3}, {"label":"8,0", "x":0, "y":4, "w":1.25}, {"label":"9,0", "x":1.25, "y":4, "w":1.25}, {"label":"9,1", "x":2.5, "y":4, "w":1.25}, {"label":"9,2", "x":3.75, "y":4, "w":2.25}, {"label":"9,3", "x":6, "y":4, "w":1.25}, {"label":"9,4", "x":10, "y":4, "w":1.25}, {"label":"8,5", "x":11.25, "y":4, "w":1.25}, {"label":"9,5", "x":12.5, "y":4, "w":1.25}, {"label":"8,6", "x":13.75, "y":4, "w":1.25}, {"label":"8,4", "x":7, "y":9, "w":2.75}]
}
}
}
34 changes: 34 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
Copyright 2022 Stefan Sundin "4pplet" <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// main layer
[0] = LAYOUT(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RALT, KC_RGUI, MO(1)),
// basic function layer
[1] = LAYOUT(
QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
};
55 changes: 55 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
Copyright 2022 Stefan Sundin "4pplet" <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// main layer
[0] = LAYOUT(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RALT, KC_RGUI, MO(1)),
// basic function layer
[1] = LAYOUT(
QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
// extra layer for VIA
[2] = LAYOUT(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
// extra layer for VIA
[3] = LAYOUT(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
// extra layer for VIA
[4] = LAYOUT(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VIA_ENABLE = yes
25 changes: 25 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/mcuconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
Copyright 2022 Stefan Sundin "4pplet" <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#pragma once

#include_next <mcuconf.h>

#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE

#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE
20 changes: 20 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Viper/Eagle REP Rev B

A alternative PCB for Viper and Eagle V2 and V3

* Keyboard Maintainer: [4pplet](https://github.com/4pplet)
* Hardware Supported: Viper/Eagle REP Rev B

Make example for this keyboard (after setting up your build environment):

make 4pplet/eagle_viper_rep/rev_b:default

See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

How to enter bootloader (DFU):
* Press and hold the button on the keyboard (the small one on the same side as the MCU) for more than 1 second. The keyboard will then enter bootloader (DFU) mode and it's ready to flash the firmware.

* Note: If holding the button a shorter time, the keyboard will just reset. If you want to exit bootloader mode without flashing a firmware, dissconnect the keyboard from your PC and reconnect it.

Alternative option if the firmware is already pre-flashed:
* Unplug your keyboard, hold down the Esc-key and at the same time, plug in your keyboard and wait a second before releasing the keys. Bootmagic lite is enabled by default.
96 changes: 96 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/rev_b.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
Copyright 2022 Stefan Sundin "4pplet" <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#include "rev_b.h"



void keyboard_pre_init_kb(void) {
setPinOutput(CAPS_PIN);
setPinOutput(SCROLL_PIN);
setPinOutput(NUM_PIN);
setPinOutput(LAYER_1);
setPinOutput(LAYER_2);
setPinOutput(LAYER_3);
setPinOutput(LAYER_4);
setPinOutput(LAYER_5);
keyboard_pre_init_user();
}

/* Set indicator leds to indicate lock states */
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if (res && LOCK_LIGHTS) {
writePin(NUM_PIN, led_state.num_lock);
writePin(CAPS_PIN, led_state.caps_lock);
writePin(SCROLL_PIN, led_state.scroll_lock);
}
return true;
}

layer_state_t layer_state_set_kb(layer_state_t state) {
state = layer_state_set_user(state);
if(DISPLAY_LAYERS){
setLayerLed(state);
}
return state;
}
/* Set indicator leds to indicate which layer is active */
void setLayerLed(layer_state_t state){
switch(get_highest_layer(state)){
case 0 :
writePin(LAYER_1, 1);
writePin(LAYER_2, 0);
writePin(LAYER_3, 0);
writePin(LAYER_4, 0);
writePin(LAYER_5, 0);
break;
case 1 :
writePin(LAYER_1, 0);
writePin(LAYER_2, 1);
writePin(LAYER_3, 0);
writePin(LAYER_4, 0);
writePin(LAYER_5, 0);
break;
case 2 :
writePin(LAYER_1, 0);
writePin(LAYER_2, 0);
writePin(LAYER_3, 1);
writePin(LAYER_4, 0);
writePin(LAYER_5, 0);
break;
case 3 :
writePin(LAYER_1, 0);
writePin(LAYER_2, 0);
writePin(LAYER_3, 0);
writePin(LAYER_4, 1);
writePin(LAYER_5, 0);
break;
case 4 :
writePin(LAYER_1, 0);
writePin(LAYER_2, 0);
writePin(LAYER_3, 0);
writePin(LAYER_4, 0);
writePin(LAYER_5, 1);
break;
default :
writePin(LAYER_1, 0);
writePin(LAYER_2, 0);
writePin(LAYER_3, 0);
writePin(LAYER_4, 0);
writePin(LAYER_5, 0);
}
}
41 changes: 41 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/rev_b.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
Copyright 2022 Stefan Sundin "4pplet" <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#pragma once

#include "quantum.h"

void setLayerLed(layer_state_t state);

#define LAYOUT( \
k00, k10, k01, k11, k02, k12, k03, k13, k04, k14, k05, k15, k06, k16, k36, \
k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, k56,\
k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, k76,\
k60, k70, k61, k71, k62, k72, k63, k73, k64, k74, k65, k75, k66, k96,\
k80, k90, k91, k92, k93, k84 ,k94, k85, k95, k86 \
) \
{ \
{k00, k01, k02, k03, k04, k05, k06}, \
{k10, k11, k12, k13, k14, k15, k16}, \
{k20, k21, k22, k23, k24, k25, k26}, \
{k30, k31, k32, k33, k34, k35, k36}, \
{k40, k41, k42, k43, k44, k45, k46}, \
{k50, k51, k52, k53, k54, k55, k56}, \
{k60, k61, k62, k63, k64, k65, k66}, \
{k70, k71, k72, k73, k74, k75, k76}, \
{k80, KC_NO, KC_NO, KC_NO, k84, k85, k86}, \
{k90, k91, k92, k93, k94, k95, k96} \
}
Loading