GPIO pins not responding in code

I did some trial and error and nailed down the chip and line number of a few pins using a relay and patience.

I then stared at the numbers in the bios for the pins and realized there is a pattern.

Here are my results, most of them checked by hand using the gpioset utility.

bios_number physical_pin chip_number line_number
60 10 0 60
61 8 0 61
79 23 1 3
80 24 1 4
81 26 1 5
82 21 1 6
83 19 1 7
88 11 1 12
110 3 1 34
111 5 1 35
112 27 1 36
113 28 1 37
114 22 1 38
115 32 1 39
134 36 1 58
136 13 1 60
137 15 1 61
139 29 1 63
140 31 1 64
141 33 1 65
143 37 1 67
145 16 1 69
146 18 1 70
161 7 2 5
162 12 2 6
163 35 2 7
164 38 2 8
165 40 2 9
3 Likes