Skip to content

Commit

Permalink
Added stanleylai's personal keymap (#420)
Browse files Browse the repository at this point in the history
* Added WS2812 support for KC60

* Reorganized WS2812 support into its own keymap

* Fixed relative link in README

* Moved WS2812 mention in README to the bottom

* Fixed titling in WS2812 README

* Reverted KC60 Makefile and default keymap back

* Moved RGB specific config.h to ws2812 keymap folder

* Added my personal keymap

* Updated compiled hex

* Reverted KC60 files to 3f6fac4 before pull request #419
  • Loading branch information
stanleylai authored and jackhumbert committed Jun 21, 2016
1 parent 650e77c commit c976c03
Show file tree
Hide file tree
Showing 12 changed files with 5,024 additions and 3,323 deletions.
3 changes: 2 additions & 1 deletion keyboard/kc60/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# make flip-ee = Download the eeprom file to the device, using Atmel FLIP
# (must have Atmel FLIP installed).
#
# make debug = Start either simulavr or avarice as specified for debugging,
# make debug = Start either simulavr or avarice as specified for debugging,
# with avr-gdb or avr-insight as the front end for debugging.
#
# make filename.s = Just compile filename.c into the assembler code only.
Expand Down Expand Up @@ -111,3 +111,4 @@ AUDIO_ENABLE ?= no # Audio output on port C6
ifndef QUANTUM_DIR
include ../../Makefile
endif

2 changes: 1 addition & 1 deletion keyboard/kc60/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

// Possible pins for columns include: F1 F0 E6 D7 D6 D4 C7 C6 B7 B5 B4 B3 B1 B0
// Pins for rows include: D0 D1 F6 F7 D5
// KC60 Version 2
// KC60 Version 2
#define MATRIX_ROW_PINS { D0, D1, F6, F7, D5 }
#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B7, D4, B1, B0, B5, B4, D7, D6, B3 }
#define UNUSED_PINS
Expand Down
4 changes: 2 additions & 2 deletions keyboard/kc60/kc60.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void backlight_init_ports()
DDRB |= (1<<6);
PORTB &= ~(1<<6);

// Use full 16-bit resolution.
// Use full 16-bit resolution.
ICR1 = 0xFFFF;

// I could write a wall of text here to explain... but TL;DW
Expand Down Expand Up @@ -99,7 +99,7 @@ void backlight_set(uint8_t level)
// Set the brightness
CHANNEL = 0xFFFF;
}
else
else
{
// Turn on PWM control of PB6
TCCR1A |= _BV(COM1B1);
Expand Down
3,215 changes: 1,451 additions & 1,764 deletions keyboard/kc60/keymaps/default/compiled.hex

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions keyboard/kc60/keymaps/stanleylai/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#----------------------------------------------------------------------------
# On command line:
#
# make all = Make software.
#
# make clean = Clean out built project files.
#
# make coff = Convert ELF to AVR COFF.
#
# make extcoff = Convert ELF to AVR Extended COFF.
#
# make program = Download the hex file to the device.
# Please customize your programmer settings(PROGRAM_CMD)
#
# make teensy = Download the hex file to the device, using teensy_loader_cli.
# (must have teensy_loader_cli installed).
#
# make dfu = Download the hex file to the device, using dfu-programmer (must
# have dfu-programmer installed).
#
# make flip = Download the hex file to the device, using Atmel FLIP (must
# have Atmel FLIP installed).
#
# make dfu-ee = Download the eeprom file to the device, using dfu-programmer
# (must have dfu-programmer installed).
#
# make flip-ee = Download the eeprom file to the device, using Atmel FLIP
# (must have Atmel FLIP installed).
#
# make debug = Start either simulavr or avarice as specified for debugging,
# with avr-gdb or avr-insight as the front end for debugging.
#
# make filename.s = Just compile filename.c into the assembler code only.
#
# make filename.i = Create a preprocessed source file for use in submitting
# bug reports to the GCC project.
#
# To rebuild project do "make clean" then "make all".
#----------------------------------------------------------------------------

# Build Options
# change yes to no to disable
#
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 ?= no # Console for debug(+400)
COMMAND_ENABLE ?= no # Commands for debug and configuration
KEYBOARD_LOCK_ENABLE ?= yes # Allow locking of keyboard via magic key
BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality
RGBLIGHT_ENABLE ?= yes # Enable WS2812 underglow RGB strip
MIDI_ENABLE ?= no # MIDI controls
UNICODE_ENABLE ?= no # Unicode
BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
AUDIO_ENABLE ?= no # Audio output on port C6
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE ?= yes # USB Nkey Rollover

ifndef QUANTUM_DIR
include ../../Makefile
endif
26 changes: 26 additions & 0 deletions keyboard/kc60/keymaps/stanleylai/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Stanley Lai's Split Right Shift with Dedicated Arrow Keys
======================

![Image of KC60 with RGB Underglow](../ws2812/ws2812_example.jpg)

## Quantum MK Firmware
For the full Quantum feature list, see [the parent README.md](/README.md).

## Keymap Notes
- Keymap setup with split Right Shift in mind.
- Right-side modifiers are setup as dedicated arrow keys

### Base Layer Reference
- Fn Layer indicated on keycap front legends.
- Tapping Caps Lock key toggles Caps. Holding it down momentarily switches us to the Fn Layer.
- Holding down "Fn" and "Page Down" momentarily switches us to the RGB Layer. Tapping "Page Down" behaves as expected.
![Base Layer](base_layer.jpg)

### RGB Layer Reference
![RGB Layer](rgb_layer.jpg)

## WS2812 Support
By default, it is now setup for 16 LEDs on the PF5 breakout pin. See [included image](../ws2812/ws2812_wiring.jpg) for wiring reference.

### Build
To build this keymap, simply run `make KEYMAP=stanleylai`.
Binary file added keyboard/kc60/keymaps/stanleylai/base_layer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c976c03

Please sign in to comment.