Putty
GPIO
with ILI9341
reference:
https://www.youtube.com/watch?v=tqfh4gD0zCw
/boot/armbianEnv.txt
verbosity=1
bootlogo=false
console=serial
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=usbhost2 usbhost3
rootdev=UUID=436d4e55-8407-4f7b-b8b0-8baee2572628
rootfstype=ext4
user_overlays=ili9341_test
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
ili9341_test.dts
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun8i-h3";
fragment@0 {
target = <&spi1>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
ili9341: ili9341@0{
compatible = "ilitek,ili9341";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&ili9341_pins>;
spi-max-frequency = <16000000>;
rotate = <90>;
bgr;
fps = <33>;
buswidth = <8>;
dc-gpios = <&pio 0 12 0>;
debug = <0>;
};
};
};
fragment@1 {
target = <&pio>;
__overlay__ {
ili9341_pins: ili9341_pins {
pins = "PA12";
function = "gpio_out";
};
};
};
};
armbian-add-overlay ili9341_test.dts
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
wiringNPAdd Duo Support
friendlyarm/WiringNP#5