corne/doc/firmware_en.md

127 lines
3.7 KiB
Markdown
Raw Permalink Normal View History

2020-11-03 07:13:24 +01:00
# Firmware
## Flash the firmware
2021-04-17 15:09:15 +02:00
There are several ways to flash the firmware,
but using [QMK Toolbox](https://github.com/qmk/qmk_toolbox) is the easiest way.
2020-11-03 07:13:24 +01:00
### Download QMK Toolbox
2021-04-17 13:34:24 +02:00
2020-11-03 07:13:24 +01:00
Download QMK Toolbox from the following link.\
2021-04-17 13:34:24 +02:00
<https://github.com/qmk/qmk_toolbox/releases/>
2020-11-03 07:13:24 +01:00
![qmk_toolbox_download](assets/qmk_toolbox_download.jpg)
Install QMK Toolbox from the downloaded file. \
Follow the instructions for each operating system for installation.
Open QMK Toolbox, you will see a window like the one below.
![qmk_toolbox_begin](assets/qmk_toolbox_begin.jpg)
### Flash the firmware
Download the firmware of VIA from the following link.\
[crkbd_rev1_common_via.hex](https://raw.githubusercontent.com/foostan/qmk_firmware-hex/main/.build/crkbd_rev1_via.hex)
2020-11-03 07:13:24 +01:00
Specify the file downloaded from "**Open**" in QMK Toolbox.
And enable the check box for "**Auto-Flash**".
![qmk_toolbox_flash](assets/qmk_toolbox_flash.jpg)
2021-04-17 15:09:15 +02:00
With the keyboard connected via USB,
2022-03-16 06:05:16 +01:00
press the reset button **twice** or short **GND & RST** pins on ProMicro to start flashing the firmware. \
2020-11-03 07:13:24 +01:00
If you see the message, it's done.
![qmk_toolbox_flashed](assets/qmk_toolbox_flashed.jpg)
Once the firmware has been written to one side of the Pro Micro,
follow the same procedure for the other side.
### (Optional) If you build the firmware yourself
Refer to [the QMK _getting started_ guide](https://docs.qmk.fm/#/newbs_getting_started),
and install the necessary software according to your OS
(it takes quite some time to install).
Once the environment is ready,
build the firmware for Crkbd with the following command.
```
2022-03-16 06:05:16 +01:00
make crkbd:via
2020-11-03 07:13:24 +01:00
```
When the build is completed,
2022-03-16 06:05:16 +01:00
execute the following command to flash.
2020-11-03 07:13:24 +01:00
```
2022-03-16 06:05:16 +01:00
make crkbd:via:avrdude
2020-11-03 07:13:24 +01:00
```
When you execute it,
2022-03-16 06:05:16 +01:00
you will see the following output (`.`'s progressively appearing).
Press the reset switch **twice** or short **GND & RST** pins on ProMicro during this time to complete the firmware writing.
Depending on the ProMicro, it may be only require pressing reset switch once.
2020-11-03 07:13:24 +01:00
```
Checking file size of crkbd_rev1_default.hex [OK]
* File size is fine-27328/28672
Copying crkbd_rev1_default.hex to qmk_firmware folder [OK]
Detecting USB port, reset your controller now ........
```
Once the firmware has been written to one side of the Pro Micro,
follow the same procedure for the other side.
## Change your keymap
The Corne Keyboard is supported by [VIA](https://caniusevia.com/). \
It can be used by flashing the firmware for VIA as described above.
### Download VIA
Download VIA from the following link.\
2021-04-17 13:34:24 +02:00
<https://github.com/the-via/releases/releases/>
2020-11-03 07:13:24 +01:00
![via_download](assets/via_download.jpg)
Install VIA from the downloaded file. \
Follow the instructions for each operating system for installation.
When VIA is opened with the keyboard plugged in, the following window will appear.
![via_begin](assets/via_begin.jpg)
2022-03-16 06:05:16 +01:00
### Configure
2020-11-03 07:13:24 +01:00
2022-03-16 06:05:16 +01:00
In this screen, you can change the keymap.
2020-11-03 07:13:24 +01:00
2021-04-17 15:09:15 +02:00
There are several types of keys that can be changed
and you can find them in the "1" area.
If you want to change the key,
click on "2" to change the key and "3" to select the key you want to change.
2020-11-03 07:13:24 +01:00
VIA instantly changes the keymap.
![via_keymap_configure](assets/via_keymap_configure.jpg)
2022-03-16 06:05:16 +01:00
### Tester
2020-11-03 07:13:24 +01:00
In this screen, you can test the operation of the keymap.
2021-04-17 15:09:15 +02:00
You can confirm that the key is set correctly
by checking that the color of the key you press changes.
2020-11-03 07:13:24 +01:00
![via_keymap_tester](assets/via_keymap_tester.jpg)
Test Matrix allows you to check the operation of each switch on the keyboard.
It is easier to check the operation of each switch after build.
![via_keymap_tester_matrix](assets/via_keymap_tester_matrix.jpg)
2022-03-16 06:05:16 +01:00
### Lighting
2020-11-03 07:13:24 +01:00
In this screen, you can change the pattern and color of the LEDs.
![via_lighitng](assets/via_lighting.jpg)