* handwired/magicforce68: refactor - layout macro KEYMAP renamed to LAYOUT - keymap now uses #include QMK_KEYBOARD_H - keymap now uses non-auto-prepended keycodes per QMK standard. - deleted deprecated and unused action_get_macro block from default keymap. * handwired/magicforce68: Configurator support * handwired/magicforce68: readme cleanup - updated to current QMK template - rename file to lowercase - fix make commands - Add Docs linkspull/5251/head
@ -1,20 +0,0 @@ | |||
Magicforce 68 Handwired | |||
======================= | |||
This firmware is for a Magicforce 68 that's had its PCB removed and is handwired with an Arduino Micro. NOTE: The Arduino Micro is different than the Arduino *Pro* Micro. | |||
## Wiring Layout | |||
![Wiring Layout](http://i.imgur.com/NmTCv5u.png) | |||
## Pinout | |||
The following pins are used: | |||
- Columns 1-15: B2, B0, D3, D2, D1, D0, D4, C6, D7, E6, B4, B5, B6, B7, D6 | |||
- Rows 1-5: F0, F1, F4, F5, F6 | |||
## Compiling and loading the firmware | |||
To build the firmware, run `make`. | |||
To flash the firemware onto the microcontroller, run `make avrdude`, and press the reset button. |
@ -0,0 +1,81 @@ | |||
{ | |||
"keyboard_name": "Magicforce 68 Handwired", | |||
"url": "", | |||
"maintainer": "qmk", | |||
"width": 17.25, | |||
"height": 5, | |||
"layouts": { | |||
"LAYOUT": { | |||
"layout": [ | |||
{"label":"`", "x":0, "y":0}, | |||
{"label":"1", "x":1, "y":0}, | |||
{"label":"2", "x":2, "y":0}, | |||
{"label":"3", "x":3, "y":0}, | |||
{"label":"4", "x":4, "y":0}, | |||
{"label":"5", "x":5, "y":0}, | |||
{"label":"6", "x":6, "y":0}, | |||
{"label":"7", "x":7, "y":0}, | |||
{"label":"8", "x":8, "y":0}, | |||
{"label":"9", "x":9, "y":0}, | |||
{"label":"0", "x":10, "y":0}, | |||
{"label":"-", "x":11, "y":0}, | |||
{"label":"=", "x":12, "y":0}, | |||
{"label":"Backspace", "x":13, "y":0, "w":2}, | |||
{"label":"Insert", "x":15.25, "y":0}, | |||
{"label":"Page Up", "x":16.25, "y":0}, | |||
{"label":"Tab", "x":0, "y":1, "w":1.5}, | |||
{"label":"Q", "x":1.5, "y":1}, | |||
{"label":"W", "x":2.5, "y":1}, | |||
{"label":"E", "x":3.5, "y":1}, | |||
{"label":"R", "x":4.5, "y":1}, | |||
{"label":"T", "x":5.5, "y":1}, | |||
{"label":"Y", "x":6.5, "y":1}, | |||
{"label":"U", "x":7.5, "y":1}, | |||
{"label":"I", "x":8.5, "y":1}, | |||
{"label":"O", "x":9.5, "y":1}, | |||
{"label":"P", "x":10.5, "y":1}, | |||
{"label":"[", "x":11.5, "y":1}, | |||
{"label":"]", "x":12.5, "y":1}, | |||
{"label":"\\", "x":13.5, "y":1, "w":1.5}, | |||
{"label":"Delete", "x":15.25, "y":1}, | |||
{"label":"Page Down", "x":16.25, "y":1}, | |||
{"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | |||
{"label":"A", "x":1.75, "y":2}, | |||
{"label":"S", "x":2.75, "y":2}, | |||
{"label":"D", "x":3.75, "y":2}, | |||
{"label":"F", "x":4.75, "y":2}, | |||
{"label":"G", "x":5.75, "y":2}, | |||
{"label":"H", "x":6.75, "y":2}, | |||
{"label":"J", "x":7.75, "y":2}, | |||
{"label":"K", "x":8.75, "y":2}, | |||
{"label":"L", "x":9.75, "y":2}, | |||
{"label":";", "x":10.75, "y":2}, | |||
{"label":"'", "x":11.75, "y":2}, | |||
{"label":"Enter", "x":12.75, "y":2, "w":2.25}, | |||
{"label":"Shift", "x":0, "y":3, "w":2.25}, | |||
{"label":"Z", "x":2.25, "y":3}, | |||
{"label":"X", "x":3.25, "y":3}, | |||
{"label":"C", "x":4.25, "y":3}, | |||
{"label":"V", "x":5.25, "y":3}, | |||
{"label":"B", "x":6.25, "y":3}, | |||
{"label":"N", "x":7.25, "y":3}, | |||
{"label":"M", "x":8.25, "y":3}, | |||
{"label":",", "x":9.25, "y":3}, | |||
{"label":".", "x":10.25, "y":3}, | |||
{"label":"/", "x":11.25, "y":3}, | |||
{"label":"Shift", "x":12.25, "y":3, "w":2.75}, | |||
{"label":"Up", "x":15.25, "y":3}, | |||
{"label":"Ctrl", "x":0, "y":4, "w":1.25}, | |||
{"label":"GUI", "x":1.25, "y":4, "w":1.25}, | |||
{"label":"Alt", "x":2.5, "y":4, "w":1.25}, | |||
{"label":"Space", "x":3.75, "y":4, "w":6.25}, | |||
{"label":"Fn", "x":10, "y":4, "w":1.25}, | |||
{"label":"Alt", "x":11.25, "y":4, "w":1.25}, | |||
{"label":"Ctrl", "x":12.5, "y":4, "w":1.25}, | |||
{"label":"Left", "x":14.25, "y":4}, | |||
{"label":"Down", "x":15.25, "y":4}, | |||
{"label":"Right", "x":16.25, "y":4} | |||
] | |||
} | |||
} | |||
} |
@ -1,67 +1,34 @@ | |||
#include "magicforce68.h" | |||
#include QMK_KEYBOARD_H | |||
#define _QWERTY 0 | |||
#define _FN1 1 | |||
#define _FN2 2 | |||
#define KC_ KC_TRNS | |||
#define KC_X0 LT(_FN2, KC_GRV) | |||
#define KC_X1 MO(_FN1) | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
[_QWERTY] = KEYMAP( | |||
/*,----+----+----+----+----+----+----+----+----+----+----+----+----+--------. ,----+----. */ | |||
ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,EQL , BSPC , INS ,PGUP, | |||
/*|----`----`----`----`----`----`----`----`----`----`----`----`----`--------| |----`----| */ | |||
TAB , Q , W , E , R , T , Y , U , I , O , P ,LBRC,RBRC, BSLS , DEL ,PGDN, | |||
/*|------`----`----`----`----`----`----`----`----`----`----`----`----`------| `----`----' */ | |||
X0 , A , S , D , F , G , H , J , K , L ,SCLN,QUOT, ENTER , | |||
/*|-------`----`----`----`----`----`----`----`----`----`----`----`----------| ,----. */ | |||
LSFT , Z , X , C , V , B , N , M ,COMM,DOT ,SLSH, RSFT , UP , | |||
/*|---------`----`----`----`----`----`----`----`----`----`----`-------------.--|----|----. */ | |||
LCTL ,LGUI ,LALT , SPACE , X1 ,RALT ,RCTL , LEFT,DOWN,RGHT | |||
/*`-----+-----+-----+------------------------------+------+-----+-----' `----+----+----' */ | |||
[_QWERTY] = LAYOUT( | |||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_PGUP, \ | |||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_PGDN, \ | |||
KC_X0, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \ | |||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, \ | |||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_X1, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \ | |||
), | |||
[_FN1] = KEYMAP( | |||
/*,----+----+----+----+----+----+----+----+----+----+----+----+----+--------. ,----+----. */ | |||
GRV , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 ,F12 , BSPC , VOLU,HOME, | |||
/*|esc-`-1--`-2--`-3--`-4--`-5--`-6--`-7--`-8--`-9--`-0--`mnus`plus`--bksp--| |ins-`pgup| */ | |||
, , , UP , , , , , , , , , , , VOLD,END, | |||
/*|tab---`-q--`-w--`-e--`-r--`-t--`-y--`-u--`-i--`-o--`-p--`-{--`-}--`--|---| `del-`pgdn' */ | |||
, ,LEFT,DOWN,RGHT, , , , , , , , , | |||
/*|caps---`-a--`-s--`-d--`-f--`-g--`-h--`-j--`-k--`-l--`-;--`-'--`----enter-| ,----. */ | |||
, , , , , , ,MUTE, , , , , MUTE, | |||
/*|shift----`-z--`-x--`-c--`-v--`-b--`-n--`-m--`-,--`-.--`-/--`-------shift-.--|-up-|----. */ | |||
, , , , , , , MPRV,MPLY,MNXT | |||
/*`ctrl-+-gui-+-alt-+----------space---------------+-fn---+-alt-+ctrl-' `left+down+rght' */ | |||
[_FN1] = LAYOUT( | |||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_BSPC, KC_VOLU, KC_HOME, \ | |||
_______, _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, KC_END, \ | |||
_______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, \ | |||
_______, _______, _______, _______, _______, _______, _______, KC_MUTE, _______, _______, _______, _______, KC_MUTE, \ | |||
_______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT \ | |||
), | |||
[_FN2] = KEYMAP( | |||
/*,----+----+----+----+----+----+----+----+----+----+----+----+----+--------. ,----+----. */ | |||
GRV , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 ,F12 , BSPC , VOLU,HOME, | |||
/*|esc-`-1--`-2--`-3--`-4--`-5--`-6--`-7--`-8--`-9--`-0--`mnus`plus`--bksp--| |ins-`pgup| */ | |||
, , , UP , , , , 7 , 8 , 9 , , , , , VOLD,END, | |||
/*|tab---`-q--`-w--`-e--`-r--`-t--`-y--`-u--`-i--`-o--`-p--`-{--`-}--`--|---| `del-`pgdn' */ | |||
, ,LEFT,DOWN,RGHT, , , 4 , 5 , 6 , , , , | |||
/*|caps---`-a--`-s--`-d--`-f--`-g--`-h--`-j--`-k--`-l--`-;--`-'--`----enter-| ,----. */ | |||
, , , , , , 0 , 1 , 2 , 3 , , , MUTE, | |||
/*|shift----`-z--`-x--`-c--`-v--`-b--`-n--`-m--`-,--`-.--`-/--`-------shift-.--|-up-|----. */ | |||
, , , , , , , MPRV,MPLY,MNXT | |||
/*`ctrl-+-gui-+-alt-+----------space---------------+-fn---+-alt-+ctrl-' `left+down+rght' */ | |||
[_FN2] = LAYOUT( | |||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_BSPC, KC_VOLU, KC_HOME, \ | |||
_______, _______, _______, KC_UP, _______, _______, _______, KC_7, KC_8, KC_9, _______, _______, _______, _______, KC_VOLD, KC_END, \ | |||
_______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, KC_4, KC_5, KC_6, _______, _______, _______, \ | |||
_______, _______, _______, _______, _______, _______, KC_0, KC_1, KC_2, KC_3, _______, _______, KC_MUTE, \ | |||
_______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT \ | |||
) | |||
}; | |||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
{ | |||
// MACRODOWN only works in this function | |||
switch(id) { | |||
case 0: | |||
if (record->event.pressed) { | |||
register_code(KC_RSFT); | |||
} else { | |||
unregister_code(KC_RSFT); | |||
} | |||
break; | |||
} | |||
return MACRO_NONE; | |||
}; |
@ -0,0 +1,24 @@ | |||
# Magicforce 68 Handwired | |||
This firmware is for a Magicforce 68 that's had its PCB removed and is handwired with an Arduino Micro. NOTE: The Arduino Micro is different than the Arduino *Pro* Micro. | |||
Keyboard Maintainer: [The QMK Community](https://github.com/qmk) | |||
Hardware Supported: magicforce68, Arduino Micro | |||
## Wiring Layout | |||
![Wiring Layout](http://i.imgur.com/NmTCv5u.png) | |||
## Pinout | |||
The following pins are used: | |||
- Columns 1-15: B2, B0, D3, D2, D1, D0, D4, C6, D7, E6, B4, B5, B6, B7, D6 | |||
- Rows 1-5: F0, F1, F4, F5, F6 | |||
Make example for this keyboard (after setting up your build environment): | |||
make handwired/magicforce68:default | |||
To flash the firmware onto the microcontroller, run `make handwired/magicforce68:default:avrdude`, and press the reset button. | |||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). |