Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix and rewrite LAYOUT macro #22

Merged
merged 1 commit into from
Jun 22, 2021
Merged

fix and rewrite LAYOUT macro #22

merged 1 commit into from
Jun 22, 2021

Conversation

koron
Copy link
Collaborator

@koron koron commented Jun 22, 2021

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枚くらいがちょど良さそうと考えました。
これも必要なら適宜修正してください。

@koron koron marked this pull request as draft June 22, 2021 15:47
@koron koron marked this pull request as ready for review June 22, 2021 15:55
@Yowkees Yowkees merged commit 04f5d2d into Yowkees:main Jun 22, 2021
@koron koron deleted the fix-and-rewrite-layouts-19 branch January 7, 2022 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LAYOUT マクロの修正&整理
2 participants