Skip to content

Commit

Permalink
handwired/space_oddity: refactor, Configurator support and readme cle…
Browse files Browse the repository at this point in the history
…anup (qmk#4977)

* handwired/space_oddity: refactor

- config.h: updated to use #pragma once include guard
- rules.mk: replace `?=` with `=`
- space_oddity.h:
  - updated to use #pragma once include guard
  - layout macro KEYMAP renamed to LAYOUT
- default keymap:
  - updated to use #include QMK_KEYBOARD_H
  - replace references to Planck keycodes
  - replace fn_actions-powered layer switch keycode
  - rebuild keymap block comments
  - keymap layers now use short-form keycodes
  - refactor action_get_macro keycodes into process_record_user

* handwired/space_oddity: Configurator support

* handwired/space_oddity: readme cleanup

- update readme to better conform with QMK template
- fixed the make command.
  • Loading branch information
noroadsleft authored and dlafrance committed May 24, 2019
1 parent 34d134a commit 7166693
Show file tree
Hide file tree
Showing 6 changed files with 273 additions and 196 deletions.
5 changes: 1 addition & 4 deletions keyboards/handwired/space_oddity/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef CONFIG_H
#define CONFIG_H
#pragma once

#include "config_common.h"

Expand Down Expand Up @@ -51,5 +50,3 @@
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#endif

#endif
78 changes: 78 additions & 0 deletions keyboards/handwired/space_oddity/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"keyboard_name": "Space Oddity",
"url": "",
"maintainer": "qmk",
"width": 14,
"height": 6,
"layouts": {
"LAYOUT": {
"layout": [
{"label":"Macro 0", "x":0, "y":0, "w":2},
{"label":"Macro 1", "x":2, "y":0, "w":2},
{"label":"Macro 2", "x":4, "y":0, "w":2},
{"label":"Macro 3", "x":6, "y":0, "w":2},
{"label":"Macro 4", "x":8, "y":0, "w":2},
{"label":"Dynamic Macro 1", "x":10, "y":0, "w":2},
{"label":"Dynamic Macro 2", "x":12, "y":0, "w":2},
{"label":"~", "x":0, "y":1, "w":2},
{"label":"!", "x":2, "y":1},
{"label":"@", "x":3, "y":1},
{"label":"#", "x":4, "y":1},
{"label":"$", "x":5, "y":1},
{"label":"%", "x":6, "y":1},
{"label":"^", "x":7, "y":1},
{"label":"&", "x":8, "y":1},
{"label":"*", "x":9, "y":1},
{"label":"(", "x":10, "y":1},
{"label":")", "x":11, "y":1},
{"label":"Backspace", "x":12, "y":1, "w":2},
{"label":"Tab", "x":0, "y":2, "w":2},
{"label":"Q", "x":2, "y":2},
{"label":"W", "x":3, "y":2},
{"label":"E", "x":4, "y":2},
{"label":"R", "x":5, "y":2},
{"label":"T", "x":6, "y":2},
{"label":"Y", "x":7, "y":2},
{"label":"U", "x":8, "y":2},
{"label":"I", "x":9, "y":2},
{"label":"O", "x":10, "y":2},
{"label":"P", "x":11, "y":2},
{"label":"_", "x":12, "y":2, "w":2},
{"label":"Esc (Ctrl)", "x":0, "y":3, "w":2},
{"label":"A", "x":2, "y":3},
{"label":"S", "x":3, "y":3},
{"label":"D", "x":4, "y":3},
{"label":"F", "x":5, "y":3},
{"label":"G", "x":6, "y":3},
{"label":"H", "x":7, "y":3},
{"label":"J", "x":8, "y":3},
{"label":"K", "x":9, "y":3},
{"label":"L", "x":10, "y":3},
{"label":":", "x":11, "y":3},
{"label":"\"", "x":12, "y":3, "w":2},
{"label":"Caps Lock (Shift)", "x":0.25, "y":4, "w":1.75},
{"label":"Z", "x":2, "y":4},
{"label":"X", "x":3, "y":4},
{"label":"C", "x":4, "y":4},
{"label":"V", "x":5, "y":4},
{"label":"B", "x":6, "y":4},
{"label":"N", "x":7, "y":4},
{"label":"M", "x":8, "y":4},
{"label":"<", "x":9, "y":4},
{"label":">", "x":10, "y":4},
{"label":"?", "x":11, "y":4},
{"label":"Enter (Shift)", "x":12, "y":4, "w":1.75},
{"label":"MO(2)", "x":1, "y":5},
{"label":"MO(1)", "x":2, "y":5},
{"label":"GUI", "x":3, "y":5},
{"label":"Alt", "x":4, "y":5},
{"label":"Ctrl", "x":5, "y":5, "w":2},
{"label":"Space", "x":7, "y":5, "w":2},
{"label":"Left (Alt)", "x":9, "y":5},
{"label":"Right (Hyper)", "x":10, "y":5},
{"label":"Up (MO(1))", "x":11, "y":5},
{"label":"Down (MO(2))", "x":12, "y":5}
]
}
}
}
Loading

0 comments on commit 7166693

Please sign in to comment.