Putty
GPIO
auto login
sudo systemctl enable [email protected]
in /lib/systemd/system/[email protected]/20-autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM
reference:
https://www.kernel.org/doc/Documentation/devicetree/bindings/display/panel/sitronix%2Cst7789v.txt
https://github.com/notro/fbtft/wiki/fbtft_device#parameters
(color was inverted)
st7789_test.dts
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun8i-h3";
fragment@0 {
target = <&spi1>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
st7789: st7789@0{
compatible = "sitronix,st7789v";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&st7789_pins>;
spi-max-frequency = <16000000>;
rotate = <90>;
bgr;
spi-cpol;
spi-cpha;
fps = <33>;
buswidth = <8>;
dc-gpios = <&pio 0 12 0>;
debug = <0>;
};
};
};
fragment@1 {
target = <&pio>;
__overlay__ {
st7789_pins: st7789_pins {
pins = "PA12";
function = "gpio_out";
};
};
};
};
font-size
sudo dpkg-reconfigure console-setup
Terminus
6x12
xorg openbox
sudo apt-get install xorg openbox
with
ILI9341reference:
https://www.youtube.com/watch?v=tqfh4gD0zCw
/boot/armbianEnv.txtili9341_test.dtsarmbian-add-overlay ili9341_test.dts