Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
commit
6ce0195e24
@ -1,71 +0,0 @@ |
|||||||
|
|
||||||
|
|
||||||
# MCU name
|
|
||||||
#MCU = at90usb1287
|
|
||||||
MCU = atmega32u4
|
|
||||||
|
|
||||||
# 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*
|
|
||||||
# Teensy halfKay 512
|
|
||||||
# Teensy++ halfKay 1024
|
|
||||||
# Atmel DFU loader 4096
|
|
||||||
# LUFA bootloader 4096
|
|
||||||
# USBaspLoader 2048
|
|
||||||
OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
|
||||||
# comment out to disable the options.
|
|
||||||
#
|
|
||||||
BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
|
|
||||||
MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
|
|
||||||
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
|
|
||||||
CONSOLE_ENABLE ?= yes # Console for debug(+400)
|
|
||||||
COMMAND_ENABLE ?= yes # Commands for debug and configuration
|
|
||||||
NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
|
||||||
RGBLIGHT_ENABLE ?= no # Enable keyboard underlight functionality (+4870)
|
|
||||||
BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality (+1150)
|
|
||||||
MIDI_ENABLE ?= no # MIDI controls
|
|
||||||
AUDIO_ENABLE ?= no
|
|
||||||
UNICODE_ENABLE ?= no # Unicode
|
|
||||||
BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
|
|
||||||
|
|
||||||
ifndef QUANTUM_DIR |
|
||||||
include ../../Makefile
|
|
||||||
endif |
|
@ -1,63 +0,0 @@ |
|||||||
#include "clueboard2.h" |
|
||||||
|
|
||||||
void matrix_init_kb(void) { |
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
matrix_init_user(); |
|
||||||
led_init_ports(); |
|
||||||
|
|
||||||
// JTAG disable for PORT F. write JTD bit twice within four cycles.
|
|
||||||
MCUCR |= (1<<JTD); |
|
||||||
MCUCR |= (1<<JTD); |
|
||||||
}; |
|
||||||
|
|
||||||
void led_init_ports() { |
|
||||||
// * Set our LED pins as output
|
|
||||||
DDRB |= (1<<4); |
|
||||||
} |
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) { |
|
||||||
if (usb_led & (1<<USB_LED_CAPS_LOCK)) { |
|
||||||
// Turn capslock on
|
|
||||||
PORTB |= (1<<4); |
|
||||||
} else { |
|
||||||
// Turn capslock off
|
|
||||||
PORTB &= ~(1<<4); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/* Clueboard 2.0 LED locations:
|
|
||||||
* |
|
||||||
* Capslock: B4, pull high to turn on |
|
||||||
* LCtrl: Shared with Capslock, DO NOT INSTALL LED'S IN BOTH |
|
||||||
* Page Up: B7, pull high to turn on |
|
||||||
* Escape: D6, pull high to turn on |
|
||||||
* Arrows: D4, pull high to turn on |
|
||||||
*/ |
|
||||||
|
|
||||||
void backlight_init_ports(void) { |
|
||||||
print("init_backlight_pin()\n"); |
|
||||||
// Set our LED pins as output
|
|
||||||
DDRD |= (1<<6); // Esc
|
|
||||||
DDRB |= (1<<7); // Page Up
|
|
||||||
DDRD |= (1<<4); // Arrows
|
|
||||||
|
|
||||||
// Set our LED pins low
|
|
||||||
PORTD &= ~(1<<6); // Esc
|
|
||||||
PORTB &= ~(1<<7); // Page Up
|
|
||||||
PORTD &= ~(1<<4); // Arrows
|
|
||||||
} |
|
||||||
|
|
||||||
void backlight_set(uint8_t level) { |
|
||||||
if ( level == 0 ) { |
|
||||||
// Turn off light
|
|
||||||
PORTD |= (1<<6); // Esc
|
|
||||||
PORTB |= (1<<7); // Page Up
|
|
||||||
PORTD |= (1<<4); // Arrows
|
|
||||||
} else { |
|
||||||
// Turn on light
|
|
||||||
PORTD &= ~(1<<6); // Esc
|
|
||||||
PORTB &= ~(1<<7); // Page Up
|
|
||||||
PORTD &= ~(1<<4); // Arrows
|
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,77 @@ |
|||||||
|
#ifndef KEYMAP_RUSSIAN_H |
||||||
|
#define KEYMAP_RUSSIAN_H |
||||||
|
|
||||||
|
#include "keymap.h" |
||||||
|
|
||||||
|
// Normal Chracters // reg SHIFT
|
||||||
|
#define RU_A KC_F // а and А
|
||||||
|
#define RU_BE KC_COMM // б and Б
|
||||||
|
#define RU_VE KC_D // в and В
|
||||||
|
#define RU_GHE KC_U // г and Г
|
||||||
|
#define RU_DE KC_L // д and Д
|
||||||
|
#define RU_IE KC_T // е and Е
|
||||||
|
#define RU_IO KC_GRV // ё and Ё
|
||||||
|
#define RU_ZHE KC_SCLN // ж and Ж
|
||||||
|
#define RU_ZE KC_P // з and З
|
||||||
|
#define RU_I KC_B // и and И
|
||||||
|
#define RU_SRT_I KC_Q // й and Й
|
||||||
|
#define RU_KA KC_R // к and К
|
||||||
|
#define RU_EL KC_K // л and Л
|
||||||
|
#define RU_EM KC_V // м and М
|
||||||
|
#define RU_EN KC_Y // н and Н
|
||||||
|
#define RU_O KC_J // о and О
|
||||||
|
#define RU_PE KC_G // п and П
|
||||||
|
#define RU_ER KC_H // р and Р
|
||||||
|
#define RU_ES KC_C // с and С
|
||||||
|
#define RU_TE KC_N // т and Т
|
||||||
|
#define RU_U KC_E // у and У
|
||||||
|
#define RU_EF KC_A // ф and Ф
|
||||||
|
#define RU_HA KC_LBRC // х and Х
|
||||||
|
#define RU_TSE KC_W // ц and Ц
|
||||||
|
#define RU_CHE KC_X // ч and Ч
|
||||||
|
#define RU_SHA KC_I // ш and Ш
|
||||||
|
#define RU_SHCHA KC_O // щ and Щ
|
||||||
|
#define RU_HSIGN KC_RBRC // ъ and Ъ
|
||||||
|
#define RU_YERU KC_S // ы and Ы
|
||||||
|
#define RU_SSIGN KC_M // ь and Ь
|
||||||
|
#define RU_E KC_QUOT // э and Э
|
||||||
|
#define RU_YU KC_DOT // ю and Ю
|
||||||
|
#define RU_YA KC_Z // я and Я
|
||||||
|
|
||||||
|
#define RU_1 KC_1 // 1 and !
|
||||||
|
#define RU_2 KC_2 // 2 and "
|
||||||
|
#define RU_3 KC_3 // 3 and №
|
||||||
|
#define RU_4 KC_4 // 4 and ;
|
||||||
|
#define RU_5 KC_5 // 5 and %
|
||||||
|
#define RU_6 KC_6 // 6 and :
|
||||||
|
#define RU_7 KC_7 // 7 and ?
|
||||||
|
#define RU_8 KC_8 // 8 and *
|
||||||
|
#define RU_9 KC_9 // 9 and (
|
||||||
|
#define RU_0 KC_0 // 0 and )
|
||||||
|
|
||||||
|
#define RU_MINS KC_MINS // - and _
|
||||||
|
#define RU_EQL KC_EQL // = and +
|
||||||
|
#define RU_BSLS KC_BSLS // \ and /
|
||||||
|
#define RU_DOT KC_SLSH // . and ,
|
||||||
|
|
||||||
|
// Shifted Chracters
|
||||||
|
#define RU_EXLM LSFT(RU_1) // !
|
||||||
|
#define RU_DQUT LSFT(RU_2) // "
|
||||||
|
#define RU_NMRO LSFT(RU_3) // №
|
||||||
|
#define RU_SCLN LSFT(RU_4) // ;
|
||||||
|
#define RU_PERC LSFT(RU_5) // %
|
||||||
|
#define RU_COLN LSFT(RU_6) // :
|
||||||
|
#define RU_QUES LSFT(RU_7) // ?
|
||||||
|
#define RU_ASTR LSFT(RU_8) // *
|
||||||
|
#define RU_LPRN LSFT(RU_9) // (
|
||||||
|
#define RU_RPRN LSFT(RU_0) // )
|
||||||
|
|
||||||
|
#define RU_UNDR LSFT(RU_MINS) // _
|
||||||
|
#define RU_PLUS LSFT(RU_EQL) // +
|
||||||
|
#define RU_SLSH LSFT(RU_BSLS) // /
|
||||||
|
#define RU_COMM LSFT(RU_DOT) // ,
|
||||||
|
|
||||||
|
// Alt Gr-ed characters
|
||||||
|
#define RU_RUBL RALT(RU_8) // ₽
|
||||||
|
|
||||||
|
#endif |
Loading…
Reference in new issue