/* Copyright 2021 wwwMADwww <4d4144h@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 . */ #pragma once #include "config_common.h" /* USB Device descriptor parameter */ #define VENDOR_ID 0xD2E0 #define PRODUCT_ID 0x62A2 #define DEVICE_VER 0x0001 #define MANUFACTURER Handwire #define PRODUCT Drevo Gramr QMK /* key matrix size */ #define MATRIX_ROWS 6 #define MATRIX_COLS 16 /* * 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 UNUSED_PINS /* COL2ROW, ROW2COL*/ // does not matter in custom matrix scanning mode, just for information #define DIODE_DIRECTION ROW2COL /* pins for 74hc595 shift registers https://www.ti.com/lit/ds/symlink/sn74hc595.pdf */ #define MATRIX_PIN_REG_DATA D1 /* SER / SI / DS */ #define MATRIX_PIN_REG_SHIFT D0 /* SRCLK / SCK / SHCP */ #define MATRIX_PIN_REG_STORE D4 /* RCLK / RCK / STCP */ /* pins for row input first = bottom, last = top */ #define MATRIX_PIN_ROWS { E6, B4, B5, B6, B7, D6 } /* Drevo Gramr PCB allows dynamic scanning of backlight LEDs, not just full board backlighting */ #define BACKLIGHT_PIN C6 #define BACKLIGHT_LEVELS 4 #define BACKLIGHT_ON_STATE 0 #define BACKLIGHT_LIMIT_VAL 255 #define BREATHING_PERIOD 6 #define BACKLIGHT_BREATHING #define LED_NUM_LOCK_PIN B2 #define LED_CAPS_LOCK_PIN D3 #define LED_SCROLL_LOCK_PIN D2 #define LED_GUI_LOCK_PIN D7 #define LED_PIN_ON_STATE 0 #define LED_PIN_OFF_STATE (LED_PIN_ON_STATE ^ 1) /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ #define DEBOUNCE 5 /* * 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 //#define NO_ACTION_MACRO //#define NO_ACTION_FUNCTION /* Bootmagic Lite key configuration */ // #define BOOTMAGIC_LITE_ROW 0 // #define BOOTMAGIC_LITE_COLUMN 0