export function getPin()

in sim/state/edgeconnector.ts [2:10]


    export function getPin(id: number) {
        /* Canonicalize pins, converting D0-D15 into 0-15 */
        if ((id >= 0x80) && (id <= 0x8f))
            id -= 0x80;
        /* Canonicalize pins, converting A0-A15 into 0-15 */
        if ((id >= 0xa0) && (id <= 0xaf))
            id -= 0xa0;
        return board().edgeConnectorState.getPin(id);
    }