Skip to content

Commit

Permalink
Merge pull request qmk#9 from yushakobo/Provo50_firmware
Browse files Browse the repository at this point in the history
Provo50 firmware
  • Loading branch information
marby3 authored Jun 11, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 4cd4db9 + cde2838 commit f8ed70c
Showing 19 changed files with 920 additions and 0 deletions.
17 changes: 17 additions & 0 deletions keyboards/alico48/alico48.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Copyright 2021 Marby
*
* 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/>.
*/

#include "alico48.h"
48 changes: 48 additions & 0 deletions keyboards/alico48/alico48.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* Copyright 2021 Marby
*
* 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 "quantum.h"

/* This is a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT( \
L_1, L_5, L_9, L_13, L_17, L_21, R_25, R_29, R_33, R_37, R_41, R_45, \
L_2, L_6, L_10, L_14, L_18, L_22, R_26, R_30, R_34, R_38, R_42, R_46, \
L_3, L_7, L_11, L_15, L_19, L_23, R_27, R_31, R_35, R_39, R_43, R_47, \
L_4, L_8, L_12, L_16, L_20, L_24, R_28, R_32, R_36, R_40, R_44, R_48 \
) \
{ \
{ KC_NO, L_1, L_2, L_3, L_4, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
{ L_5, KC_NO, L_6, L_7, L_8, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
{ L_9, L_10, KC_NO, L_11, L_12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
{ L_13, L_14, L_15, KC_NO, L_16, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
{ L_17, L_18, L_19, L_20, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
{ L_21, L_22, L_23, L_24, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, R_25, R_26, R_27, R_28 }, \
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, R_29, KC_NO, R_30, R_31, R_32 }, \
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, R_33, R_34, KC_NO, R_35, R_36 }, \
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, R_37, R_38, R_39, KC_NO, R_40 }, \
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, R_41, R_42, R_43, R_44, KC_NO }, \
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, R_45, R_46, R_47, R_48, KC_NO } \
}
152 changes: 152 additions & 0 deletions keyboards/alico48/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
/*
Copyright 2021 Marby
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 0x0000
#define DEVICE_VER 0x0001
#define MANUFACTURER marby3
#define PRODUCT alico48

/* key matrix size */
#define MATRIX_ROWS 12
#define MATRIX_COLS 10

/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7, F6, D4, C6, D7, E6, B4, B5 }
#define MATRIX_COL_PINS { B6, B2, B3, B1, F7, D4, C6, D7, E6, B4 }
#define UNUSED_PINS

/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW

/*
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
*/
//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6

//#define LED_NUM_LOCK_PIN B0
//#define LED_CAPS_LOCK_PIN B1
//#define LED_SCROLL_LOCK_PIN B2
//#define LED_COMPOSE_PIN B3
//#define LED_KANA_PIN B4

//#define BACKLIGHT_PIN B7
//#define BACKLIGHT_LEVELS 3
//#define BACKLIGHT_BREATHING

#define RGB_DI_PIN D3
#ifdef RGB_DI_PIN
# define RGBLED_NUM 24
# define RGBLIGHT_HUE_STEP 8
# define RGBLIGHT_SAT_STEP 8
# define RGBLIGHT_VAL_STEP 8
# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
/*== all animations enable ==*/
# define RGBLIGHT_ANIMATIONS
/*== or choose animations ==*/
//# 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
/*== customize breathing effect ==*/
/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
/*==== use exp() and sin() ====*/
//# define RGBLIGHT_EFFECT_BREATHE_CENTER 2 // 1 to 2.7
//# define RGBLIGHT_EFFECT_BREATHE_MAX 128 // 0 to 255
#endif

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

/* define if matrix has ghost (lacks anti-ghosting diodes) */
//#define MATRIX_HAS_GHOST

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

/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
* This is useful for the Windows task manager shortcut (ctrl+shift+esc).
*/
//#define GRAVE_ESC_CTRL_OVERRIDE

/*
* Force NKRO
*
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
* makefile for this to work.)
*
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
* until the next keyboard reset.
*
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
* fully operational during normal computer usage.
*
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
* power-up.
*
*/
//#define FORCE_NKRO

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

/* disable these deprecated features by default */
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

/* Bootmagic Lite key configuration */
//#define BOOTMAGIC_LITE_ROW 0
//#define BOOTMAGIC_LITE_COLUMN 0
60 changes: 60 additions & 0 deletions keyboards/alico48/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"keyboard_name": "alico48",
"url": "",
"maintainer": "Marby",
"width": 16,
"height": 11,
"layouts": {
"LAYOUT": {
"layout": [
{"label":"Q", "x":1, "y":0},
{"label":"W", "x":2, "y":0},
{"label":"E", "x":3, "y":0},
{"label":"R", "x":4, "y":0},
{"label":"T", "x":5, "y":0},
{"label":"Y", "x":11, "y":0},
{"label":"U", "x":12, "y":0},
{"label":"I", "x":13, "y":0},
{"label":"O", "x":14, "y":0},
{"label":"P", "x":15, "y":0},
{"label":"A", "x":1.25, "y":1},
{"label":"S", "x":2.25, "y":1},
{"label":"D", "x":3.25, "y":1},
{"label":"F", "x":4.25, "y":1},
{"label":"G", "x":5.25, "y":1},
{"label":"H", "x":10.75, "y":1},
{"label":"J", "x":11.75, "y":1},
{"label":"K", "x":12.75, "y":1},
{"label":"L", "x":13.75, "y":1},
{"label":":", "x":14.75, "y":1},
{"label":"Z", "x":1.5, "y":2},
{"label":"X", "x":2.5, "y":2},
{"label":"C", "x":3.5, "y":2},
{"label":"V", "x":4.5, "y":2},
{"label":"B", "x":5.5, "y":2},
{"label":"N", "x":10.5, "y":2},
{"label":"M", "x":11.5, "y":2},
{"label":"<", "x":12.5, "y":2},
{"label":">", "x":13.5, "y":2},
{"label":"?", "x":14.5, "y":2},
{"label":"Ctrl", "x":2, "y":3},
{"label":"Win", "x":3, "y":3},
{"label":"Alt", "x":4, "y":3},
{"label":"Alt", "x":12, "y":3},
{"label":"Win", "x":13, "y":3},
{"label":"Ctrl", "x":14, "y":3},
{"label":"Space", "x":0, "y":3},
{"label":"L2", "x":0, "y":3},
{"label":"BS", "x":0.5, "y":3.5},
{"label":"\"", "x":0.5, "y":4.5},
{"label":"Shift", "x":0.5, "y":5.5},
{"x":0.5, "y":6.5},
{"label":"Esc", "x":-1.0, "y":7},
{"label":"Tab", "x":-1.0, "y":8},
{"label":"Shift", "x":-1.0, "y":9},
{"x":-1.0, "y":10},
{"label":"L1", "x":-1.5, "y":10},
{"label":"Enter", "x":-1.5, "y":10}]
}
}
}
60 changes: 60 additions & 0 deletions keyboards/alico48/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* Copyright 2021 Marby
*
* 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/>.
*/
#include QMK_KEYBOARD_H

// Defines names for use in layer keycodes and the keymap
enum layer_names {
_BASE,
_L1,
_L2,
_L3
};

#define L1 MO(_L1)
#define L2 MO(_L2)
#define L3 MO(_L3)
#define EISU LALT(KC_GRAVE)

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
XXXXXXX, KC_LCTL, KC_LGUI, KC_LAPO, L1, KC_SPC, KC_ENT, L2, KC_RAPC, KC_RGUI, KC_RCTL, XXXXXXX
),
/* L1 */
[_L1] = LAYOUT(
EISU, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
_______, _______, _______, _______, L1, _______, _______, L3, _______, _______, _______, _______
),
/* L2 */
[_L2] = LAYOUT(
EISU, XXXXXXX, KC_UP, XXXXXXX, KC_F1, KC_F2, KC_F7, KC_F8, XXXXXXX, KC_PSCR, KC_SLCK, KC_PAUS,
_______, KC_LEFT, KC_DOWN, KC_RGHT, KC_F3, KC_F4, KC_F9, KC_F10, XXXXXXX, KC_HOME, KC_PGUP, XXXXXXX,
_______, XXXXXXX, XXXXXXX, XXXXXXX, KC_F5, KC_F6, KC_F11, KC_F12, XXXXXXX, KC_END, KC_PGDN, _______,
_______, _______, _______, _______, L3, _______, _______, L2, _______, _______, _______, _______
),
/* L3 */
[_L3] = LAYOUT(
EISU, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, EEP_RST,
_______, RGB_TOG, RGB_MOD, RGB_RMOD,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_HUD, RGB_SAD, RGB_VAD, XXXXXXX,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
_______, _______, _______, _______, L3, _______, _______, L3, _______, _______, _______, _______
)
};
1 change: 1 addition & 0 deletions keyboards/alico48/keymaps/default/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# The default keymap for alico48
Loading
Oops, something went wrong.

0 comments on commit f8ed70c

Please sign in to comment.