Skip to content

Commit

Permalink
share layout
Browse files Browse the repository at this point in the history
  • Loading branch information
alinelena committed Oct 23, 2024
1 parent 5ae439f commit 8096428
Show file tree
Hide file tree
Showing 21 changed files with 12 additions and 30 deletions.
42 changes: 12 additions & 30 deletions config/boards/shields/mlego_m66_rev4/mlego_m66_rev4_rp2040.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,25 @@
* SPDX-License-Identifier: MIT
*/
#include <dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>
#include <dt-bindings/zmk/matrix_transform.h>
#include "mlego_m66_rev4_layout.dtsi"

/ {
model = "mlego m66, rev4";
chosen {
zmk,kscan = &kscan;
zmk,matrix_transform = &m66;
// zephyr,console = &cdc_acm_uart;
m66_layout: m66_layout {
compatible = "zmk,physical-layout";
display-name = "m66 default layout";
kscan = <&kscan_m66>;
};

m66: m66_0 {
compatible = "zmk,matrix-transform";
columns = <14>;
rows = <5>;
chosen {
zmk,physical-layout = &m66_layout;
/*
┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
│ 0A │ 0B │ 0C │ 0D │ 0E │ 0F │ 0G │ 0H │ 0I │ 0J │ 0K │ 0L │ 0M │ 0N │
├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┘
│ 1A │ 1B │ 1C │ 1D │ 1E │ 1F │ 1G │ 1H │ 1I │ 1J │ 1K │ 1L │ 1M │
├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
│ 2A │ 2B │ 2C │ 2D │ 2E │ 2F │ 2G │ 2H │ 2I │ 2J │ 2K │ 2L │ 2M │
├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
│ 3A │ 3B │ 3C │ 3D │ 3E │ 3F │ 3G │ 3H │ 3I │ 3J │ 3K │ 3L │ 3M │
├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
│ 4A │ 4B │ 4C │ 4D │ 4E │ 4F │ 4G │ 4H │ 4I │ 4J │ 4K │ 4L │ 4M │
└────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┴────┘

zephyr,console = &cdc_acm_uart;
*/
map = <
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11) RC(0,12) RC(0,13)
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11) RC(1,12)
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10) RC(2,11) RC(2,12)
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11) RC(3,12)
RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,7) RC(4,8) RC(4,9) RC(4,10) RC(4,11) RC(4,12)
>;
};
kscan: kscan {
};


kscan_m66: kscan_m66 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";
wakeup-source;
Expand Down
Binary file modified firmware/mlego2x2_rev1-seeeduino_xiao_ble-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego2x2_rev2-seeeduino_xiao_rp2040-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego5x13_61_r8-seeeduino_xiao_ble-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego5x13_rev4-blackpill_f401ce-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego5x13_rev5-rpi_pico-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego5x13_rev7-seeeduino_xiao_rp2040-zmk.uf2
Binary file not shown.
Binary file not shown.
Binary file modified firmware/mlego_m66_rev4 ls011b7dh03-nice_nano_v2-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego_m66_rev4 ls013b7dh03_128x128-nice_nano_v2-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego_m66_rev4 ls013b7dh05-nice_nano_v2-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego_m66_rev4 weact_eink_154-nice_nano_v2-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego_m66_rev4 weact_eink_213-nice_nano_v2-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego_m66_rev4-nice_nano_v2-zmk.uf2
Binary file not shown.
Binary file modified firmware/mlego_m66_rev4_rp2040-rpi_pico-zmk.uf2
Binary file not shown.
Binary file modified firmware/onekey pro_micro-nice_nano_v2-zmk.uf2
Binary file not shown.
Binary file modified firmware/onekey rp2040-rpi_pico-zmk.uf2
Binary file not shown.
Binary file modified firmware/onekey seed-seeeduino_xiao_ble-zmk.uf2
Binary file not shown.
Binary file modified firmware/settings_reset-nice_nano_v2-zmk.uf2
Binary file not shown.
Binary file modified firmware/settings_reset-rpi_pico-zmk.uf2
Binary file not shown.
Binary file modified firmware/settings_reset-seeeduino_xiao_ble-zmk.uf2
Binary file not shown.

0 comments on commit 8096428

Please sign in to comment.