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

[Keyboard] Add ReverseStudio-DecadePad #8553

Merged
merged 15 commits into from
Apr 5, 2020
12 changes: 12 additions & 0 deletions keyboards/ReverseStudio/DecadePad/DecadePad.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "DecadePad.h"
bool led_update_kb(led_t led_state) {
if (led_update_user(led_state)){
// writePin sets the pin high for 1 and low for 0.
// In this example the pins are inverted, setting
// it low/0 turns it on, and high/1 turns the LED off.
// This behavior depends on whether the LED is between the pin
// and VCC or the pin and GND.
writePin(D4, led_state.num_lock);
}
return true;
}
19 changes: 19 additions & 0 deletions keyboards/ReverseStudio/DecadePad/DecadePad.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#pragma once

#include "quantum.h"
#define LAYOUT( \
huajijam marked this conversation as resolved.
Show resolved Hide resolved
k01, k02, k03, k04, \
k11, k12, k13, k14, \
k21, k22, k23, \
k31, k32, k33, k34, \
k41, k42, k43, \
k51, k53, k54 \
) \
{ \
{ k01, k02, k03, k04 }, \
{ k11, k12, k13, k14 }, \
{ k21, k22, k23 }, \
{ k31, k32, k33, k34 }, \
{ k41, k42, k43 }, \
{ k51, k53, k54 }, \
}
81 changes: 81 additions & 0 deletions keyboards/ReverseStudio/DecadePad/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
Copyright 2012 Jun Wako <wakojun@gmail.com>

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://www.gnu.org/licenses/>.
*/

#pragma once

#include "config_common.h"


/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x6060
#define DEVICE_VER 0x0001
#define MANUFACTURER ReverseStudio
#define PRODUCT DecadePad
#define DESCRIPTION 6x4Pad

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

/* NIU Mini PCB default pin-out */
#define MATRIX_ROW_PINS { F0, F1, F4, F5, F6, F7 }
#define MATRIX_COL_PINS { D0, D1, D2, D3 }
#define UNUSED_PINS

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* define if matrix has ghost */
//#define MATRIX_HAS_GHOST

/* number of backlight levels */
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5

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

#define RGB_DI_PIN D5
#ifdef RGB_DI_PIN
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 20
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#endif

/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION
35 changes: 35 additions & 0 deletions keyboards/ReverseStudio/DecadePad/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"keyboard_name": "DecadePad",
"url": "",
"maintainer": "qmk",
"width": 6,
"height": 4,
"layouts": {
"LAYOUT": {
"key_count": 21,
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":3, "y":0},
{"x":4, "y":0},
{"x":5, "y":0, "w":2},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":3, "y":1},
{"x":4, "y":1},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":3, "y":2},
{"x":4, "y":2},
{"x":5, "y":2},
{"x":0, "y":3},
{"x":1, "y":3},
{"x":3, "y":3, "w":1, "h":2},
{"x":5, "y":3, "w":1, "h":2},
]
}
}
}
12 changes: 12 additions & 0 deletions keyboards/ReverseStudio/DecadePad/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
RGB_TOG, RGB_MOD, RGB_VAI, RGB_M_R, \
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, \
KC_P7, KC_P8, KC_P9, \
KC_P4, KC_P5, KC_P6, KC_PPLS, \
KC_P1, KC_P2, KC_P3, \
KC_P0, KC_PDOT, KC_PENT \
),
};
12 changes: 12 additions & 0 deletions keyboards/ReverseStudio/DecadePad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
RGB_TOG, RGB_MOD, RGB_VAI, RGB_M_R,
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3,
KC_P0, KC_PDOT, KC_PENT
)
};
7 changes: 7 additions & 0 deletions keyboards/ReverseStudio/DecadePad/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[{a:7},"","","",""],
["","","",""],
["","","",{h:2},""],
["","",""],
["","","",{h:2},""],
[{w:2},"",""]

36 changes: 36 additions & 0 deletions keyboards/ReverseStudio/DecadePad/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = atmel-dfu

# Build Options
# change to "no" to disable the options, or define them in the Makefile in
# the appropriate keymap folder that will get included automatically
#
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # 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
MIDI_ENABLE = no # MIDI controls
AUDIO_ENABLE = no # Audio output on port C6
UNICODE_ENABLE = yes # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
API_SYSEX_ENABLE = no

# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend

LAYOUTS = default
huajijam marked this conversation as resolved.
Show resolved Hide resolved
LAYOUTS_HAS_RGB = no
1 change: 1 addition & 0 deletions keyboards/ReverseStudio/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Made By huajijam