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 soy20 PCB #10440

Merged
merged 33 commits into from
Oct 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d646635
Add soy20 PCB
Friend-Or-F0H Sep 25, 2020
1b100aa
Update keyboards/soy20/config.h
Friend-Or-F0H Sep 25, 2020
0fb69b7
Update keyboards/soy20/config.h
Friend-Or-F0H Sep 25, 2020
660bb38
Update keyboards/soy20/rules.mk
Friend-Or-F0H Sep 25, 2020
20891c3
Update keyboards/soy20/soy20.h
Friend-Or-F0H Sep 25, 2020
9ff8534
Update keyboards/soy20/keymaps/via/keymap.c
Friend-Or-F0H Sep 25, 2020
833a8e4
Update keyboards/soy20/keymaps/via/keymap.c
Friend-Or-F0H Sep 25, 2020
242c67d
Update keyboards/soy20/rules.mk
Friend-Or-F0H Sep 25, 2020
274133f
Update keyboards/soy20/config.h
Friend-Or-F0H Sep 25, 2020
8236bb2
Update keyboards/soy20/config.h
Friend-Or-F0H Sep 25, 2020
ee843bf
Update keyboards/soy20/config.h
Friend-Or-F0H Sep 25, 2020
c6e9ef7
Update keyboards/soy20/keymaps/default/keymap.c
Friend-Or-F0H Sep 28, 2020
4fa872a
Update keyboards/soy20/keymaps/default/keymap.c
Friend-Or-F0H Sep 28, 2020
8f15137
Update keyboards/soy20/info.json
Friend-Or-F0H Oct 1, 2020
9355539
Update keyboards/soy20/readme.md
Friend-Or-F0H Oct 1, 2020
b0c3d7e
Update keyboards/soy20/rules.mk
Friend-Or-F0H Oct 1, 2020
afbe972
Update keyboards/soy20/rules.mk
Friend-Or-F0H Oct 1, 2020
d635d62
Update keyboards/soy20/rules.mk
Friend-Or-F0H Oct 1, 2020
8e1b86f
Update keyboards/soy20/soy20.h
Friend-Or-F0H Oct 1, 2020
0df3868
Update keyboards/soy20/keymaps/default/keymap.c
Friend-Or-F0H Oct 1, 2020
81760c3
Update keyboards/soy20/keymaps/default/keymap.c
Friend-Or-F0H Oct 1, 2020
7604d20
Update keyboards/soy20/keymaps/default/keymap.c
Friend-Or-F0H Oct 1, 2020
5c264e8
Update keyboards/soy20/keymaps/via/keymap.c
Friend-Or-F0H Oct 1, 2020
da2dbfb
Update keyboards/soy20/keymaps/via/keymap.c
Friend-Or-F0H Oct 1, 2020
d6586df
Update keyboards/soy20/keymaps/via/keymap.c
Friend-Or-F0H Oct 1, 2020
7ed9a0e
Update keyboards/soy20/keymaps/via/keymap.c
Friend-Or-F0H Oct 1, 2020
b29673e
Update keyboards/soy20/info.json
Friend-Or-F0H Oct 1, 2020
46dd620
Update keyboards/soy20/config.h
Friend-Or-F0H Oct 1, 2020
82c64e3
Updating *.c & *.h files with GPL3 license
Friend-Or-F0H Oct 1, 2020
a1e3f3e
Delete rules.mk
Friend-Or-F0H Oct 1, 2020
e0d9bb7
Delete keymap.c
Friend-Or-F0H Oct 1, 2020
4de0158
Corrected Header Comments
Friend-Or-F0H Oct 2, 2020
abac81b
Merge branch 'soy20' of https://github.com/Friend-Or-F0H/qmk_firmware…
Friend-Or-F0H Oct 2, 2020
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
60 changes: 60 additions & 0 deletions keyboards/soy20/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#ifndef CONFIG_H
#define CONFIG_H

Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x4452 // "DR" short for DrewKeys
#define PRODUCT_ID 0x534f // "SO" short for Soy
#define DEVICE_VER 0x0001
#define MANUFACTURER drewkeys
#define PRODUCT soy20
#define DESCRIPTION soy20 4x5 numpad
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 4

/* key matrix pins */
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4 }
#define MATRIX_COL_PINS { B5, B6, B7, C7 }
#define UNUSED_PINS

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* number of backlight levels */

#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 3
#endif
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved

/* Set 0 if debouncing isn't needed */
#define DEBOUNCING_DELAY 5
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved

/* 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

/* key combination for command */
#define IS_COMMAND() ( \
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
)

/* prevent stuck modifiers */
#define PREVENT_STUCK_MODIFIERS


Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
#ifdef RGB_DI_PIN
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 0
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#endif

#endif
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
34 changes: 34 additions & 0 deletions keyboards/soy20/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"keyboard_name": "Soy20",
"url": "",
"maintainer": "twholt",
"width": 4,
"height": 5,
"layouts": {
"LAYOUT": {
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
"key_count": 20,
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
"layout": [
{"label":"K00 (B0,B5)", "x":0, "y":0},
{"label":"K01 (B0,B6)", "x":1, "y":0},
{"label":"K02 (B0,B7)", "x":2, "y":0},
{"label":"K03 (B0,C7)", "x":3, "y":0},
{"label":"K10 (B1,B5)", "x":0, "y":1},
{"label":"K11 (B1,B6)", "x":1, "y":1},
{"label":"K12 (B1,B7)", "x":2, "y":1},
{"label":"K13 (B1,C7)", "x":3, "y":1},
{"label":"K20 (B2,B5)", "x":0, "y":2},
{"label":"K21 (B2,B6)", "x":1, "y":2},
{"label":"K22 (B2,B7)", "x":2, "y":2},
{"label":"K23 (B2,C7)", "x":3, "y":2},
{"label":"K30 (B3,B5)", "x":0, "y":3},
{"label":"K31 (B3,B6)", "x":1, "y":3},
{"label":"K32 (B3,B7)", "x":2, "y":3},
{"label":"K33 (B3,C7)", "x":3, "y":3},
{"label":"K40 (B4,B5)", "x":0, "y":4},
{"label":"K41 (B4,B6)", "x":1, "y":4},
{"label":"K42 (B4,B7)", "x":2, "y":4},
{"label":"K43 (B4,C7)", "x":3, "y":4}
]
}
}
}
77 changes: 77 additions & 0 deletions keyboards/soy20/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#include "soy20.h"
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT(
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
KC_PMNS, KC_PAST, KC_PSLS, MO(1),
KC_PPLS, KC_P9, KC_P8, KC_P7,
KC_TAB, KC_P5, KC_P6, KC_P4,
KC_PENT, KC_P3, KC_P2, KC_P1,
KC_DEL, KC_SCLN, KC_PDOT, KC_P0),

[1] = LAYOUT(
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
KC_NLCK, KC_PSCR, 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, RESET),

[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),

[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),

Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
};

void matrix_init_user(void) {
}

void matrix_scan_user(void) {
}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void led_set_user(uint8_t usb_led) {

if (usb_led & (1 << USB_LED_NUM_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_CAPS_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_COMPOSE)) {

} else {

}

if (usb_led & (1 << USB_LED_KANA)) {

} else {

}

}
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
77 changes: 77 additions & 0 deletions keyboards/soy20/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#include "soy20.h"
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT(
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
KC_PMNS, KC_PAST, KC_PSLS, MO(1),
KC_PPLS, KC_P9, KC_P8, KC_P7,
KC_TAB, KC_P5, KC_P6, KC_P4,
KC_PENT, KC_P3, KC_P2, KC_P1,
KC_DEL, KC_SCLN, KC_PDOT, KC_P0),

[1] = LAYOUT(
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
KC_NLCK, KC_PSCR, 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, RESET),

[2] = LAYOUT(
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
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),

[3] = LAYOUT(
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
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),

};

void matrix_init_user(void) {
}

void matrix_scan_user(void) {
}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

void led_set_user(uint8_t usb_led) {

if (usb_led & (1 << USB_LED_NUM_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_CAPS_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {

} else {

}

if (usb_led & (1 << USB_LED_COMPOSE)) {

} else {

}

if (usb_led & (1 << USB_LED_KANA)) {

} else {

}

}
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 2 additions & 0 deletions keyboards/soy20/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
13 changes: 13 additions & 0 deletions keyboards/soy20/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Soy20

A 4x5 keypad created by drewkeys

Keyboard Maintainer: [Friend-Or-F0H](https://github.com/Friend-Or-F0H)
Hardware Supported: drewkeys Soy20 PCB
Hardware Availability: Limited GB
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved

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

make soy20: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).
60 changes: 60 additions & 0 deletions keyboards/soy20/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# MCU name
MCU = atmega32u2

# Processor frequency.
# This will define a symbol, F_CPU, in all source code files equal to the
# processor frequency in Hz. You can then use this symbol in your source code to
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
# automatically to create a 32-bit value in your source code.
#
# This will be an integer division of F_USB below, as it is sourced by
# F_USB after it has run through any CPU prescalers. Note that this value
# does not *change* the processor frequency - it should merely be updated to
# reflect the processor speed set externally so that the code can use accurate
# software delays.
F_CPU = 16000000

#
# LUFA specific
#
# Target architecture (see library "Board Types" documentation).
ARCH = AVR8

# Input clock frequency.
# This will define a symbol, F_USB, in all source code files equal to the
# input clock frequency (before any prescaling is performed) in Hz. This value may
# differ from F_CPU if prescaling is used on the latter, and is required as the
# raw input clock is fed directly to the PLL sections of the AVR for high speed
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
# at the end, this will be done automatically to create a 32-bit value in your
# source code.
#
# If no clock division is performed on the input clock inside the AVR (via the
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
F_USB = $(F_CPU)

# Interrupt driven control endpoint task(+60)
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT


# Boot Section Size in *bytes*
OPT_DEFS += -DBOOTLOADER_SIZE=4096

Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved

# Build Options
# comment out to disable the options.
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
#
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = no # Console for debug(+400)
COMMAND_ENABLE = yes # Commands for debug and configuration
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output on port C6
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
MIDI_ENABLE = no # MIDI support
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions keyboards/soy20/soy20.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "soy20.h"
22 changes: 22 additions & 0 deletions keyboards/soy20/soy20.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef SOY20_H
#define SOY20_H

#pragma once

#include "quantum.h"

#define LAYOUT( \
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved
K00, K01, K02, K03, \
K10, K11, K12, K13, \
K20, K21, K22, K23, \
K30, K31, K32, K33, \
K40, K41, K42, K43 \
) { \
{ K00, K01, K02, K03 }, \
{ K10, K11, K12, K13 }, \
{ K20, K21, K22, K23 }, \
{ K30, K31, K32, K33 }, \
{ K40, K41, K42, K43 } \
}

#endif
Friend-Or-F0H marked this conversation as resolved.
Show resolved Hide resolved