Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #19
以下のLAYOUTマクロを定義し、それらを使って既存のキーマップを書き換えました。
いずれのレイアウトもキーのボールの有無や左右といった
物理な配列の違いを反映したキーマップ定義をするようになっています。
LAYOUT_right_ball
default, via, TBscroll で使用LAYOUT_left_ball
via_Leftで使用LAYOUT_double_balls
近い将来の拡張用LAYOUT_no_balls
現在は使ってない。というか普通は使わないだろうLAYOUT
LAYOUT_right_ball
のエイリアス。現在は未使用特に via_Left キーマップは配列の関係上マップ内容をいじらざる得なかったので
マージ後に適宜なおしてください。
あと追加で
LAYER_STATE_16BIT
を config.h に定義して、レイヤを最大
16-1
枚に制限することでファームサイズを400バイト程度削減しています。レイヤが最大7枚でよければ
LAYER_STATE_8BIT
に変更することでさらに減らせるのですがVIAとの関係を考えると15枚くらいがちょど良さそうと考えました。
これも必要なら適宜修正してください。