Skip to content

Commit

Permalink
st7735
Browse files Browse the repository at this point in the history
  • Loading branch information
alinelena committed Oct 23, 2024
1 parent 948cd5b commit 365312c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions config/boards/shields/mlego_m66_rev4/st7735.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,9 @@ board_spi: &spi0 {
status = "okay";
pinctrl-0 = < &spi0_default >;
pinctrl-names = "default";
cs-gpios = <&gpio0 21 GPIO_ACTIVE_LOW> ,
<&gpio0 6 GPIO_ACTIVE_HIGH>;
cs-gpios = <&gpio0 6 GPIO_ACTIVE_LOW> ,
<&gpio0 21 GPIO_ACTIVE_HIGH>;

shift_reg: 595@0 {
compatible = "zmk,gpio-595";
status = "okay";
gpio-controller;
spi-max-frequency = <2000000>;
#gpio-cells = <2>;
reg = <1>;
ngpios = <16>;
};
st7735s160x80: st7735r@0 {
compatible = "sitronix,st7735r";
spi-max-frequency = <1000000>;
Expand Down Expand Up @@ -53,4 +44,14 @@ board_spi: &spi0 {
gamctrp1 = [02 1c 07 12 37 32 29 2d 29 25 2b 39 00 01 03 10];
gamctrn1 = [03 1d 07 06 2e 2c 29 2d 2e 2e 37 3f 00 00 02 10];
};

shift_reg: 595@0 {
compatible = "zmk,gpio-595";
status = "okay";
gpio-controller;
spi-max-frequency = <2000000>;
#gpio-cells = <2>;
reg = <1>;
ngpios = <16>;
};
};
Binary file modified firmware/mlego_m66_rev4_rp2040-rpi_pico-zmk.uf2
Binary file not shown.

0 comments on commit 365312c

Please sign in to comment.