= Terminal Driver = - http://www.tldp.org/LDP/lkmpg/2.6/html/lkmpg.html#AEN121 - [[https://atmega32-avr.com/how-to-super-simple-serial-terminal-using-atmega128/|Fungerande exempel på ATMEL]] - [[http://linusakesson.net/programming/tty/index.php|The TTY demystified]] - https://www.linux.it/~rubini/docs/serial/serial.html - [[https://www.kernel.org/doc/html/v4.17/driver-api/gpio/consumer.html|kernel doc html v4 17 driver api gpio consumer]] == Terminal Driver == - [[https://en.wikipedia.org/wiki/Linux_console|Wikipedia:Linux console]] - [[https://www.linuxjournal.com/article/5896|Snabb genomgång]] === Oreilly === Linux Device Drivers (kapitell 18). Finns hos Lysator, samt som HTML och PDF. - https://www.oreilly.com/library/view/linux-device-drivers/0596005903/ch18.html - https://lwn.net/images/pdf/LDD3/ch18.pdf == Skärm == === `GTC-16041` === - [[https://manualzz.com/doc/17344723/hebei-jiya-electronics-gtc-16041-tr6noc--75-512-11-|Möljgt datablad]] - http://hugo.hornquist.se/datablad/gtc-16041.pdf | # | Lvl | Description | |----|-----|----------------------| | 1 | | Ground | | 2 | | Power Logic | | 3 | | Power LCD | | 4 | | Register Select (RS) | 5 | | Read/Write (RW) | | 6 | | Enable | | 7 | | Data 0 | | 8 | | Data 1 | | 9 | | Data 2 | | 10 | | Data 3 | | 11 | | Data 4 | | 12 | | Data 5 | | 13 | | Data 6 | | 14 | | Data 7 | | 15 | | Backlight | | 16 | | Backlight | Med skärmen till höger om headern. | 4 | 7 | | 5 | 8 | | | 9 | | | 10 | | | 11 | | | 12 | | GND | 13 | | PWR | 14 | | RS | 7 | | RW | 8 | | | 9 | | | 10 | | | 11 | | | 12 | | GND | 13 | | PWR | 14 | | EN | EN | RasPi pinout pin 1: | 3.3v | 5v | | 2 | 5V | | 3 | GND | | 4 | 14 | | GND | 15 | | 17 | 18 | | 27 | GND | | 22 | 23 | | 3.3v | 24 | | 10 | GND | Away from board | 9 | 25 | | 11 | 8 | | GND | 7 | | 0 | 1 | | 5 | GND | | 6 | 12 | | 13 | GND | | 19 | 16 | | 26 | 20 | | GND | 21 | Mapping | display | pi | |---------|----| | 4 | 22 | | 5 | 0 | | | | | 7 | - | | 8 | - | | 9 | - | | 10 | - | | 11 | 17 | | 12 | 4 | | 13 | 3 | | 14 | 2 | | | | | GND | | | PWR | | == GPIO == - [[https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git|libgpiod]] `/dev/gpiochip0` == Datablad == https://www.raspberrypi.org/documentation/hardware/raspberrypi/mechanical/rpi_MECH_3bplus.pdf - `linux/arch/arm/boot/dts/bcm2837-rpi-3-b.dts` - `/usr/lib/modules/$(uname -r)/kernel` - '/usr/src/rpi-kernel-headers-$(uname -r)' compatible field