|
18 | 18 |
|
19 | 19 | .pinout {
|
20 | 20 | width: 100%;
|
21 |
| - max-width: 800px; |
22 |
| - min-width: 200px; |
| 21 | + max-width: 900px; |
| 22 | + min-width: 640px; |
23 | 23 | display: grid;
|
24 | 24 | grid-template-columns: auto 1fr auto
|
25 | 25 | }
|
|
44 | 44 | margin: 0 10px 0 0;
|
45 | 45 | }
|
46 | 46 |
|
| 47 | +#right_pins { |
| 48 | + margin: 0 0 0 10px; |
| 49 | +} |
| 50 | + |
47 | 51 | .pins tr td div {
|
48 | 52 | width: 90%;
|
49 | 53 | text-align: center;
|
|
54 | 58 | padding: 0 5px;
|
55 | 59 | }
|
56 | 60 |
|
57 |
| -#left_pins tr td:nth-last-child(1) div { |
| 61 | +#left_pins tr td:nth-last-child(1) div, #right_pins tr td:nth-child(1) div { |
58 | 62 | background: #cccccc;
|
59 | 63 | color: black;
|
60 | 64 | }
|
|
67 | 71 | background: #000000;
|
68 | 72 | }
|
69 | 73 |
|
| 74 | +.pwr_pin { |
| 75 | + background: #E83131; |
| 76 | +} |
| 77 | + |
70 | 78 | .pinmode {
|
71 | 79 | display: block;
|
72 |
| - padding: 0px 2px; |
73 | 80 | border: 1px solid black;
|
| 81 | + margin: -1px 0px; |
74 | 82 | }
|
75 | 83 |
|
76 | 84 | .pinmode span {
|
77 |
| - margin: 5px; |
78 |
| - padding: 5px 15px; |
| 85 | + margin: 0px; |
| 86 | + padding: 5px 10px; |
79 | 87 | }
|
80 | 88 |
|
81 | 89 | .selected_pinmode {
|
82 | 90 | margin: 2px;
|
83 |
| - color: white; |
84 | 91 | background: blue;
|
85 | 92 | }
|
86 | 93 |
|
|
90 | 97 | cursor: pointer;
|
91 | 98 | }
|
92 | 99 |
|
| 100 | +@media screen and (max-width: 1000px) { |
| 101 | + .pins { |
| 102 | + font-size: 12px; |
| 103 | + } |
| 104 | +} |
| 105 | + |
| 106 | +@media screen and (max-width: 900px) { |
| 107 | + .pins { |
| 108 | + font-size: 11px; |
| 109 | + } |
| 110 | +} |
| 111 | + |
| 112 | +@media screen and (max-width: 800px) { |
| 113 | + .pins { |
| 114 | + font-size: 8px; |
| 115 | + } |
| 116 | +} |
93 | 117 |
|
94 | 118 |
|
95 | 119 | </style>
|
|
116 | 140 |
|
117 | 141 | function setlinks() {
|
118 | 142 | for (const div of document.getElementsByClassName('pinmode')) {
|
119 |
| - for (const option of ["Input", "0", "1"]) { |
| 143 | + for (const option of ["IN", "0", "1"]) { |
120 | 144 | const span = document.createElement("span");
|
121 | 145 | span.appendChild(document.createTextNode(option));
|
122 | 146 | span.classList.add("deselected_pinmode");
|
@@ -163,6 +187,30 @@ <h1>Raspberry Pi Pico W Demo</h1>
|
163 | 187 | </table>
|
164 | 188 |
|
165 | 189 | <img src="pinout.svg" class="pico_image"/>
|
| 190 | + |
| 191 | + <table id="right_pins" class="pins"> |
| 192 | + <tr><td><div>40</div></td><td><div class="pwr_pin">VBUS</div></td><td></td><td></td></tr> |
| 193 | + <tr><td><div>39</div></td><td><div class="pwr_pin">VSYS</div></td><td></td><td></td></tr> |
| 194 | + <tr><td><div>38</div></td><td><div class="gnd_pin">GND</div></td><td></td><td></td></tr> |
| 195 | + <tr><td><div>37</div></td><td><div class="pwr_pin">3V3_EN</div></td><td></td><td></td></tr> |
| 196 | + <tr><td><div>36</div></td><td><div class="pwr_pin">3V3_OUT</div></td><td></td><td></td></tr> |
| 197 | + <tr><td><div>35</div></td><td><div class="pwr_pin">ADC_VREF</div></td><td></td><td></td></tr> |
| 198 | + <tr><td><div>34</div></td><td><div class="gpio_pin">GPIO28</div></td><td><div id="gpio28" class="pinmode"></div></td><td><div></div></td></tr> |
| 199 | + <tr><td><div>33</div></td><td><div class="gnd_pin">GND</div></td><td></td><td></td></tr> |
| 200 | + <tr><td><div>32</div></td><td><div class="gpio_pin">GPIO27</div></td><td><div id="gpio27" class="pinmode"></div></td><td><div></div></td></tr> |
| 201 | + <tr><td><div>31</div></td><td><div class="gpio_pin">GPIO26</div></td><td><div id="gpio26" class="pinmode"></div></td><td><div></div></td></tr> |
| 202 | + <tr><td><div>30</div></td><td><div class="pwr_pin">RUN</div></td><td></td><td></td></tr> |
| 203 | + <tr><td><div>29</div></td><td><div class="gpio_pin">GPIO22</div></td><td><div id="gpio22" class="pinmode"></div></td><td><div></div></td></tr> |
| 204 | + <tr><td><div>28</div></td><td><div class="gnd_pin">GND</div></td><td></td><td></td></tr> |
| 205 | + <tr><td><div>27</div></td><td><div class="gpio_pin">GPIO21</div></td><td><div id="gpio21" class="pinmode"></div></td><td><div></div></td></tr> |
| 206 | + <tr><td><div>26</div></td><td><div class="gpio_pin">GPIO20</div></td><td><div id="gpio20" class="pinmode"></div></td><td><div></div></td></tr> |
| 207 | + <tr><td><div>25</div></td><td><div class="gpio_pin">GPIO19</div></td><td><div id="gpio19" class="pinmode"></div></td><td><div></div></td></tr> |
| 208 | + <tr><td><div>24</div></td><td><div class="gpio_pin">GPIO18</div></td><td><div id="gpio18" class="pinmode"></div></td><td><div></div></td></tr> |
| 209 | + <tr><td><div>23</div></td><td><div class="gnd_pin">GND</div></td><td></td><td></td></tr> |
| 210 | + <tr><td><div>22</div></td><td><div class="gpio_pin">GPIO17</div></td><td><div id="gpio17" class="pinmode"></div></td><td><div></div></td></tr> |
| 211 | + <tr><td><div>21</div></td><td><div class="gpio_pin">GPIO16</div></td><td><div id="gpio16" class="pinmode"></div></td><td><div></div></td></tr> |
| 212 | + </table> |
| 213 | + |
166 | 214 | </div>
|
167 | 215 | </div>
|
168 | 216 | </body>
|
|
0 commit comments