@ -0,0 +1,20 @@ | |||
/* Copyright 2021 DEAN WOODYATT | |||
* | |||
* 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 "C64.h" | |||
@ -0,0 +1,63 @@ | |||
/* Copyright 2021 Dean Woodyatt | |||
* | |||
* 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" | |||
#define xxx KC_NO | |||
// Enable this for ProMicro built-in LEDS | |||
// #define tx_led B0 | |||
// #define rx_led D5 | |||
// STANDARD COMMODORE 64 KEYBOARD LAYOUT | |||
// ,-------------------------------------------------------------------------------. ,-----. | |||
// |LEFT| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | + | - | £ |HOME| Del| | F1 | | |||
// |-------------------------------------------------------------------------------| |-----| | |||
// | CTRL | Q | W | E | R | T | Y | U | I | O | P | @ | * | UP | RESTO | | F3 | | |||
// ,|-------------------------------------------------------------------------------|. |-----| | |||
// |RNSTP|SFTLK| A | S | D | F | G | H | J | K | L | : | ; | = | Enter | | F5 | | |||
// |----------------------------------------------------------------------------------| |-----| | |||
// | COMM| LSFT | Z | X | C | V | B | N | M | , | . | / | RSFT | UD | LR | | F7 | | |||
// |----------------------------------------------------------------------------------| `-----' | |||
// | | SPACE | | | |||
// `----------------------------------------------------------------------------------' | |||
// JOYSTICK 1 , UP, DOWN, LEFT, RIGHT, SPACE, Enter | |||
// JOYSTICK 2 , UP, DOWN, LEFT, RIGHT, SPACE, Enter | |||
// REPLACE COLUMN 8 WITH REQUIRED KEYPRESSES, I.E. W A S D ENTER | |||
// REPLACE ROW 8 WITH REQUIRED KEYPRESSES. I.E. Q,A,O,P, SPACE | |||
#define LAYOUT( \ | |||
k10, k00, k70, k01, k71, k02, k72, k03, k73, k04, k74, k05, k75, k06, k76, k07, k47, \ | |||
k20, k60, k11, k61, k12, k62, k13, k63, k14, k64, k15, k65, k16, k66, k88, k57, \ | |||
k30, k21, k51, k22, k52, k23, k53, k24, k54, k25, k55, k26, k56, k17, k67, \ | |||
k50, k31, k41, k32, k42, k33, k43, k34, k44, k35, k45, k36, k46, k37, k27, k77, \ | |||
k40, \ | |||
k80, k81, k82, k83, k84, k85, \ | |||
k08, k18, k28, k38, k48, k58 \ | |||
) \ | |||
{ \ | |||
{ k00, k01, k02, k03, k04, k05, k06, k07, k08 }, \ | |||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18 }, \ | |||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28 }, \ | |||
{ k30, k31, k32, k33, k34, k35, k36, k37, k38 }, \ | |||
{ k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \ | |||
{ k50, k51, k52, k53, k54, k55, k56, k57, k58 }, \ | |||
{ k60, k61, k62, k63, k64, k65, k66, k67, xxx }, \ | |||
{ k70, k71, k72, k73, k74, k75, k76, k77, xxx }, \ | |||
{ k80, k81, k82, k83, k84, k85, xxx, xxx, k88 } \ | |||
} | |||
@ -0,0 +1,156 @@ | |||
/* | |||
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/>. | |||
*/ | |||
/* Keyboard Firmware for TheC64mini by retrogames. This firmware works on the Upgrade Keyboard Kit sold by Dean Woodyatt at Bleugh.biz */ | |||
#pragma once | |||
#include "config_common.h" | |||
/* USB Device descriptor parameter */ | |||
#define VENDOR_ID 0xFEED | |||
#define PRODUCT_ID 0x6060 | |||
#define DEVICE_VER 0x0001 | |||
#define MANUFACTURER Bleugh | |||
#define PRODUCT C64_Mini_Keyboard | |||
#define DESCRIPTION commodore_mini | |||
/* key matrix size */ | |||
#define MATRIX_ROWS 9 | |||
#define MATRIX_COLS 9 | |||
/* | |||
* 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 { 9, 3, 4, 5, 6, 7, 8, 2,0 } // ARDUINO PINS THAT WORK | |||
//#define MATRIX_COL_PINS { 10, 16, 14, 21, 18, 19, 20, 15, 1} // ARDUINO PINS THAT WORK | |||
#define MATRIX_COL_PINS { D1, D0, D4, C6, D7, E6, B4, B5, D2 } // PROBABLY FULLY WORKING PINS | |||
#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7, F6, F5, F4, D3 } // PROBABLY FULLY WORKING PINS | |||
#define UNUSED_PINS | |||
#define DIODE_DIRECTION ROW2COL | |||
/* | |||
* 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 E2 | |||
//#ifdef RGB_DI_PIN | |||
//# define RGBLED_NUM 16 | |||
//# 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 1.85 // 1 to 2.7 | |||
//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 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 |
@ -0,0 +1,19 @@ | |||
/* Copyright 2021 DEAN WOODYATT | |||
* | |||
* 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 | |||
// place overrides here |
@ -0,0 +1,165 @@ | |||
/* Copyright 2021 Dean Woodyatt | |||
* | |||
* 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 "C64.h" | |||
// Defines names for use in layer keycodes and the keymap | |||
enum layer_names { | |||
_QW, | |||
_ALT, | |||
_SHFT | |||
}; | |||
// Defines the keycodes used by our macros in process_record_user | |||
enum custom_keycodes { | |||
QMKBEST = SAFE_RANGE, | |||
QMKURL | |||
}; | |||
// CHANGED 0603 DW TO EXPERIMENT WITH JOYSTICK | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
// STANDARD COMMODORE 64 KEYBOARD LAYOUT | |||
// ,-------------------------------------------------------------------------------. ,-----. | |||
// |LEFT| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | + | - | £ |HOME| Del| | F1 | | |||
// |-------------------------------------------------------------------------------| |-----| | |||
// | CTRL | Q | W | E | R | T | Y | U | I | O | P | @ | * | UP | RESTO | | F3 | | |||
// ,|-------------------------------------------------------------------------------|. |-----| | |||
// |RNSTP|SFTLK| A | S | D | F | G | H | J | K | L | : | ; | = | Enter | | F5 | | |||
// |----------------------------------------------------------------------------------| |-----| | |||
// | COMM| LSFT | Z | X | C | V | B | N | M | , | . | / | RSFT | UD | LR | | F7 | | |||
// |----------------------------------------------------------------------------------| `-----' | |||
// | | SPACE | | | |||
// `----------------------------------------------------------------------------------' | |||
// UD = UP DOWN CURSOR KEYS. DEFAULT IS DOWN, SHIFTS TO UP | |||
// LR = LEFT RIGHT CURSOR KEYS, DEFAULT IS LEFT, SHIFTS TO RIGHT | |||
// JOYSTICK 1 , UP, DOWN, LEFT, RIGHT, SPACE, Enter | |||
// JOYSTICK 2 , UP, DOWN, LEFT, RIGHT, SPACE, Enter | |||
// REPLACE COLUMN 8 WITH REQUIRED KEYPRESSES, I.E. W A S D ENTER | |||
// REPLACE ROW 8 WITH REQUIRED KEYPRESSES. I.E. Q,A,O,P, SPACE | |||
/*BASE LAYER QWERTY LAYOUT UK BASED KEYMAP - OTHER NATIONALITIES TO FOLLOW */ | |||
[_QW] = LAYOUT( | |||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_PLUS, KC_MINS, KC_HASH, KC_HOME, KC_BSPC, KC_F1, | |||
KC_LCTRL, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, S(KC_QUOT), KC_ASTR, KC_CIRC, KC_TAB, KC_F3, | |||
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, S(KC_SCLN), KC_SCLN, KC_EQL, KC_ENT, KC_F5, | |||
KC_LGUI, MO(_SHFT), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_DOWN, KC_LEFT, KC_F7, | |||
KC_SPC, | |||
KC_UP, KC_DOWN, KC_LEFT, KC_RIGHT, KC_SPC, KC_ENT, | |||
KC_UP, KC_DOWN, KC_LEFT, KC_RIGHT, KC_SPC, KC_ENT | |||
), | |||
// SHIFTED COMMODORE 64 KEYBOARD LAYOUT | |||
// ,-------------------------------------------------------------------------------. ,-----. | |||
// |LEFT| ! | " | # | $ | % | & | ' | ( | ) | 0 | + | | | £ | *1 | Del| | F2 | | |||
// |-------------------------------------------------------------------------------| |-----| | |||
// | CTRL | Q | W | E | R | T | Y | U | I | O | P | *2 | * | PI |RESTO | | F4 | | |||
// ,|-------------------------------------------------------------------------------|. |-----| | |||
// |RNSTP|SFTLK| A | S | D | F | G | H | J | K | L | [ | ] | = | Enter | | F6 | | |||
// |----------------------------------------------------------------------------------| |-----| | |||
// | COMM| LSFT | Z | X | C | V | B | N | M | < | > | ? | RSFT | DU | RL | | F8 | | |||
// |----------------------------------------------------------------------------------| `-----' | |||
// | | SPACE | | | |||
// `----------------------------------------------------------------------------------' | |||
// *1 PETSCI DIAGONAL WITH BOTTOM RIGHT EMPTY | |||
// *2 PETSCI LARGE BACKWARDS L GRAPHIC | |||
// *3 PETSCI LARGE MIDDLE LINE - GRAPHIC | |||
// CURSOR KEYS (LR UD) SHIFT TO DOWN AND RIGHT | |||
// | |||
/*Shifted QWERTY LAYOUT*/ | |||
[_SHFT] = LAYOUT( | |||
KC_KP_1, S(KC_1), S(KC_2), S(KC_BSLS), S(KC_4), S(KC_5), S(KC_7), KC_QUOT, S(KC_9), S(KC_0), KC_0, A(KC_PLUS), S(KC_MINS), A(KC_3), KC_HOME, KC_DEL, KC_F2, | |||
KC_LCTRL, S(KC_Q), S(KC_W), S(KC_E), S(KC_R), S(KC_T), S(KC_Y), S(KC_U), S(KC_I), S(KC_O), S(KC_P), A(KC_QUOT), A(KC_8), A(KC_6), KC_TAB, KC_F4, | |||
KC_ESC, S(KC_A), S(KC_S), S(KC_D), S(KC_F), S(KC_G), S(KC_H), S(KC_J), S(KC_K), S(KC_L), KC_LBRC, KC_RBRC, KC_EQL, KC_ENT, KC_F6, | |||
KC_LGUI, _______, S(KC_Z), S(KC_X), S(KC_C), S(KC_V), S(KC_B), S(KC_N), S(KC_M), S(KC_COMM), S(KC_DOT), S(KC_SLSH), KC_LSFT, S(KC_LEFT), S(KC_DOWN), KC_F8, | |||
KC_SPC, | |||
KC_UP, KC_DOWN, KC_LEFT, KC_RIGHT, KC_SPC, KC_ENT, | |||
KC_UP, KC_DOWN, KC_LEFT, KC_RIGHT, KC_SPC, KC_ENT | |||
), | |||
// KC_NUBS = POUND | |||
// KC_BSLS = HASH | |||
/* ALT SHIFT */ | |||
[_ALT] = LAYOUT( | |||
_______, _______, _______, _______, _______, _______, _______, _______ , _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______ , _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______ , _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______ , _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______ , _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______ , _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______ , | |||
_______, _______, _______, _______, _______, _______, _______ | |||
), | |||
}; | |||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
// If console is enabled, it will print the matrix position and status of each key pressed | |||
#ifdef CONSOLE_ENABLE | |||
uprintf("KL: kc: 0x%04X, col: %u, row: %u, pressed: %b, time: %u, interrupt: %b, count: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.time, record->tap.interrupted, record->tap.count); | |||
#endif | |||
return true; | |||
} | |||
// NEWEST KEY OVERRIDE FEATURE AS ENABLED IN QMK 28 AUGUST 2021 | |||
//Replace Shift+Arrow Up (Circ) with Alt+6 | |||
const key_override_t alt6_override = ko_make_basic(MOD_MASK_SHIFT, KC_CIRC, A(KC_6)); // OK CHANGES SHIFTED UP ARROW TO PI SYMBOL | |||
const key_override_t altPLUS_override = ko_make_basic(MOD_MASK_SHIFT, KC_PLUS, A(KC_PLUS)); // OK CHANGES SHIFTED + SYMBOL TO LARGE + GRAPHIC | |||
const key_override_t altSTAR_override = ko_make_basic(MOD_MASK_SHIFT, KC_ASTR, A(KC_8)); // OK CHANGES SHIFTED * TO A lARGE - GRAPHIC | |||
const key_override_t altPOUND_override = ko_make_basic(MOD_MASK_SHIFT, KC_HASH, A(KC_3)); // OK CHANGES SHIFTED £ SIGN TO DIAGONAL GRAPHIC LOWER RIGHT EMPTY TOP LEFT FILLED | |||
// This globally defines all key overrides to be used | |||
const key_override_t **key_overrides = (const key_override_t *[]) { | |||
&alt6_override, | |||
&altPLUS_override, | |||
&altPOUND_override, | |||
&altSTAR_override, | |||
NULL // Null terminate the array of overrides! | |||
}; | |||
/* | |||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
switch (keycode) { | |||
case QMKBEST: | |||
if (record->event.pressed) { | |||
// when keycode QMKBEST is pressed | |||
SEND_STRING("QMK is the best thing ever!"); | |||
} else { | |||
// when keycode QMKBEST is released | |||
} | |||
break; | |||
case QMKURL: | |||
if (record->event.pressed) { | |||
// when keycode QMKURL is pressed | |||
SEND_STRING("https://qmk.fm/\n"); | |||
} else { | |||
// when keycode QMKURL is released | |||
} | |||
break; | |||
} | |||
return true; | |||
} |
@ -0,0 +1 @@ | |||
# The default keymap for C64 |
@ -0,0 +1,32 @@ | |||
Keyboard Firmware for https://retrogames.biz/thec64 TheC64 Mini | |||
Keyboard produced by Bleugh.biz | |||
(this code is - modified from Atomic keyboard firmware) | |||
I recommend https://msys.qmk.fm/ QMK MSYS , it's super easy. | |||
Keyboard Maintainer: [Dean Woodyatt (https://github.com/bleughb/)] | |||
The Keyboard Matrix is the same as the original Commodore 64, a 9x9 grid. I've also incorporated a header on the C64 Mini keyboard PCB to allow a genuine C64 keyboard to connect via USB to a PC or the Mini. | |||
====================== | |||
DIY/Assembled C64 Mini Keyboard Kit - Commodore 64 Keyboard - from [ BLEUGH ](www.bleugh.biz). | |||
## Quantum MK Firmware | |||
For the full Quantum feature list, see [the parent readme.md](/readme.md). | |||
## Building | |||
Download or clone the whole firmware and navigate to the keyboards/C64 Folder | |||
### Default | |||
To build with the default keymap, simply run qmk compile -kb c64 -km default | |||
### Other Keymaps | |||
The keymap is in the Keymaps folder. I'm still learning all about QMK - but feel free to tinker around, i'll help where I can. I'd recommend making a copy of the keymap file and calling it CUSTOMkemap or something similar, that way when you 'play' you have a fallback | |||
A plan is to have dedicated keymaps for PC connection and C64 mini connection. Eventually maybe even to be able to toggle them with button presses | |||
``` | |||
To build with the new keymap, simply run 'qmk compile -kb c64 -km CUSTOM(whateveryournameis)' | |||
``` | |||
Keymaps follow the format **__\<name\>.c__** and are stored in the `keymaps` folder. |
@ -0,0 +1,32 @@ | |||
# 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 = qmk-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 | |||
# | |||
KEY_OVERRIDE_ENABLE = yes # Enable Key Override to allow unshifted shifts | |||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||
MOUSEKEY_ENABLE = yes # Mouse keys | |||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||
CONSOLE_ENABLE = no # Console for debug | |||
COMMAND_ENABLE = no # Commands for debug and configuration | |||
# 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 = no # USB Nkey Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||
BLUETOOTH_ENABLE = no # Enable Bluetooth | |||
AUDIO_ENABLE = no # Audio output | |||
UNICODE_ENABLE = no # seeing if I can enable direct sending of codes to get £ and @ signs correctly shifted |