aboutsummaryrefslogtreecommitdiff
path: root/Terminal Driver.wiki
blob: d32929f588daeb83291f55b297f25ecd55899429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
= 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