/**
* Raspberry Pi 4 Model B — Velxio schematic board.
*
* Authored from scratch (not traced from RPi Foundation art); the layout
* is the publicly-known PCB topology (BCM2711 SoC centre-right, USB-C
* power on the south edge, dual micro-HDMI mid-south, 4× USB-A and
* gigabit Ethernet stacked on the east edge, 40-pin GPIO header on the
* north edge, microSD on the underside). Rendered at the same
* 250×160 footprint and pin pitch as RaspberryPi3Element so wires from
* existing canvases line up byte-for-byte.
*
* The 40-pin GPIO header is electrically identical to every Pi from
* the 1B+ onwards — pin numbers 1-40 map to the same BCM GPIO lines
* the firmware sees, so reusing the same pin-name scheme means Velxio
* routes and example projects transfer between Pi models without
* touching wires.
*/
import { buildPi40PinHeader } from './pi40PinHeader';
const PI_WIDTH = 250;
const PI_HEIGHT = 160;
class RaspberryPi4Element extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' });
}
connectedCallback() {
this.render();
}
get pinInfo() {
return buildPi40PinHeader();
}
render() {
let pinsSvg = '';
const pins = this.pinInfo;
pins.forEach((pin) => {
pinsSvg += ``;
pinsSvg += ``;
});
this.shadowRoot!.innerHTML = `
`;
}
}
if (!customElements.get('velxio-raspberry-pi-4')) {
customElements.define('velxio-raspberry-pi-4', RaspberryPi4Element);
}
export {};