diff options
| author | Alex Ong <the.onga@gmail.com> | 2019-01-04 19:39:14 +1100 |
|---|---|---|
| committer | Alex Ong <the.onga@gmail.com> | 2019-01-04 19:39:14 +1100 |
| commit | 47c91fc7f75ae0a477e55b687aa0fc30da0a283c (patch) | |
| tree | 65ad39452748ff2e6d4a83ce54ede6ca22c9ada9 /quantum/template/ps2avrgb | |
| parent | ac9b88e8ccbbf38762871504cd827ff0d941c426 (diff) | |
| parent | 563ce3f225d981ce460c12ca5130dfe47af41df0 (diff) | |
| download | qmk_firmware-47c91fc7f75ae0a477e55b687aa0fc30da0a283c.tar.gz qmk_firmware-47c91fc7f75ae0a477e55b687aa0fc30da0a283c.zip | |
Merge branch 'master' of https://github.com/qmk/qmk_firmware
Diffstat (limited to 'quantum/template/ps2avrgb')
| -rw-r--r-- | quantum/template/ps2avrgb/config.h | 4 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/readme.md | 44 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/rules.mk | 4 | ||||
| -rw-r--r-- | quantum/template/ps2avrgb/template.h | 12 |
4 files changed, 58 insertions, 6 deletions
diff --git a/quantum/template/ps2avrgb/config.h b/quantum/template/ps2avrgb/config.h index d2c83781f..4ff3513bc 100644 --- a/quantum/template/ps2avrgb/config.h +++ b/quantum/template/ps2avrgb/config.h | |||
| @@ -44,3 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 44 | 44 | ||
| 45 | /* key combination for command */ | 45 | /* key combination for command */ |
| 46 | #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | 46 | #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) |
| 47 | |||
| 48 | /* Bootmagic Lite key configuration */ | ||
| 49 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 50 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/quantum/template/ps2avrgb/readme.md b/quantum/template/ps2avrgb/readme.md new file mode 100644 index 000000000..feec722a5 --- /dev/null +++ b/quantum/template/ps2avrgb/readme.md | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | # %KEYBOARD% | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A short description of the keyboard/project | ||
| 6 | |||
| 7 | Keyboard Maintainer: [You](https://github.com/yourusername) | ||
| 8 | Hardware Supported: The PCBs, controllers supported | ||
| 9 | Hardware Availability: links to where you can find this hardware | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make %KEYBOARD%:default | ||
| 14 | |||
| 15 | Flashing | ||
| 16 | |||
| 17 | ps2avr(GB) boards use an atmega32a microcontroller and a different bootloader. It is not flashable using the regular QMK methods. | ||
| 18 | |||
| 19 | Windows: | ||
| 20 | 1. Download [HIDBootFlash](http://vusb.wikidot.com/project:hidbootflash). | ||
| 21 | 2. Place your keyboard into reset. | ||
| 22 | 3. Press the `Find Device` button and ensure that your keyboard is found. | ||
| 23 | 4. Press the `Open .hex File` button and locate the `.hex` file you created. | ||
| 24 | 5. Press the `Flash Device` button and wait for the process to complete. | ||
| 25 | |||
| 26 | macOS: | ||
| 27 | 1. Install homebrew by typing the following: | ||
| 28 | ``` | ||
| 29 | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
| 30 | ``` | ||
| 31 | 2. Install `crosspack-avr`. | ||
| 32 | ``` | ||
| 33 | brew cask install crosspack-avr | ||
| 34 | ``` | ||
| 35 | 3. Install the following packages: | ||
| 36 | ``` | ||
| 37 | brew install python | ||
| 38 | brew install pyusb | ||
| 39 | brew install --HEAD`https://raw.githubusercontent.com/robertgzr/homebrew-tap/master/bootloadhid.rb | ||
| 40 | |||
| 41 | 4. Place your keyboard into reset. | ||
| 42 | 5. Flash the board by typing `bootloadHID -r` followed by the path to your `.hex` file. | ||
| 43 | |||
| 44 | 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). | ||
diff --git a/quantum/template/ps2avrgb/rules.mk b/quantum/template/ps2avrgb/rules.mk index 68d50aec6..85603f955 100644 --- a/quantum/template/ps2avrgb/rules.mk +++ b/quantum/template/ps2avrgb/rules.mk | |||
| @@ -31,8 +31,8 @@ F_CPU = 12000000 | |||
| 31 | BOOTLOADER = bootloadHID | 31 | BOOTLOADER = bootloadHID |
| 32 | 32 | ||
| 33 | # build options | 33 | # build options |
| 34 | BOOTMAGIC_ENABLE = yes | 34 | BOOTMAGIC_ENABLE = full |
| 35 | MOUSEKEY_ENABLE = yes | 35 | MOUSEKEY_ENABLE = no |
| 36 | EXTRAKEY_ENABLE = yes | 36 | EXTRAKEY_ENABLE = yes |
| 37 | CONSOLE_ENABLE = yes | 37 | CONSOLE_ENABLE = yes |
| 38 | COMMAND_ENABLE = yes | 38 | COMMAND_ENABLE = yes |
diff --git a/quantum/template/ps2avrgb/template.h b/quantum/template/ps2avrgb/template.h index c3924ee71..b4d6f4662 100644 --- a/quantum/template/ps2avrgb/template.h +++ b/quantum/template/ps2avrgb/template.h | |||
| @@ -18,10 +18,14 @@ | |||
| 18 | 18 | ||
| 19 | #include "quantum.h" | 19 | #include "quantum.h" |
| 20 | 20 | ||
| 21 | // This a shortcut to help you visually see your layout. | 21 | /* This a shortcut to help you visually see your layout. |
| 22 | // The following is an example using the Planck MIT layout | 22 | * |
| 23 | // The first section contains all of the arguments | 23 | * The first section contains all of the arguments representing the physical |
| 24 | // The second converts the arguments into a two-dimensional array | 24 | * layout of the board and position of the keys. |
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 25 | #define LAYOUT( \ | 29 | #define LAYOUT( \ |
| 26 | k00, k01, k02, \ | 30 | k00, k01, k02, \ |
| 27 | k10, k11 \ | 31 | k10, k11 \ |
