From fdc517505b285f970ac6771062408742f08eb9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 9 May 2022 14:49:56 +0200 Subject: =?UTF-8?q?m=C3=A5n=20=209=20maj=202022=2014:49:56=20CEST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Raspberry Pi.wiki | 2 +- Terminal Driver.wiki | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/Raspberry Pi.wiki b/Raspberry Pi.wiki index 7051b7c..7f83b41 100644 --- a/Raspberry Pi.wiki +++ b/Raspberry Pi.wiki @@ -2,7 +2,7 @@ https://git.hornquist.se/raspberry-builder/tree/ deb http://archive.raspberrypi.org/debian/ bullseye main deb http://raspbian.raspberrypi.org/raspbian bullseye main contrib non-free rpi - +t sudo debootstrap --foreign --arch=anmhf bullseye PWD/root http://raspbian.raspberrypi.org/raspbian - [[https://github.com/RPi-Distro/pi-gen|How upstream builds packages]] diff --git a/Terminal Driver.wiki b/Terminal Driver.wiki index 9b122c9..f082822 100644 --- a/Terminal Driver.wiki +++ b/Terminal Driver.wiki @@ -100,6 +100,13 @@ pin 1: | 26 | 20 | | GND | 21 | + +gr bl vi sv + 2 3 4 17 + +bl vi gr sv +14 13 12 11 + Mapping | display | pi | @@ -199,3 +206,32 @@ $ fdtdump /boot/bcm2708-rpi-b-plus.dtb $ dtc -I dts -O dtb -o ov.dtbo overlay.dts }}} + + +== Escape codes == +`\e[2J` :: clear display +`\e[H` :: cursor to home +`\e[LD` :: Display ON +`\e[Ld` :: Display OFF +`\e[LC` :: Cursor ON +`\e[Lc` :: Cursor OFF +`\e[LB` :: Blink ON +`\e[Lb` :: Blink OFF +`\e[L+` :: Back light ON +`\e[L-` :: Back light OFF +`\e[L*` :: Flash back light +`\e[Lf` :: Small font +`\e[LF` :: Large font +`\e[Ln` :: One line +`\e[LN` :: Two lines +`\e[Ll` :: Shift cursor left +`\e[Lr` :: Shift cursor right +`\e[LL` :: Shift display left +`\e[LR` :: Shift display right +`\e[Lk` :: kill end of line +`\e[LI` :: Reinitialize +`\e[LG` :: Redefine character ? + + case 'x': /* gotoxy : LxXXX[yYYY]; */ + case 'y': /* gotoxy : LyYYY[xXXX]; */ + -- cgit v1.2.3