gokul/macro-six-usbc
USB-powered ATmega32U4 controller board with protected/switched 5 V power, six tactile keys, rotary encoder, reset/boot/ISP interfaces, power LED, and six daisy-chained SK6812 RGB LEDs driven through MOSFETs.
- Version
- 0.1.6
- License
- MIT
- Stars
- 0
imports/KH_SK22D07_G5.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"],
pin5: ["pin5"],
pin6: ["pin6"],
pin7: ["pin7"],
pin8: ["pin8"]
} as const
export const KH_SK22D07_G5 = (props: ChipProps<typeof pinLabels>) => {
return (
<switch type="dpdt"
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C5274511"
]
}}
manufacturerPartNumber="KH-SK22D07-G5"
footprint={<footprint>
<platedhole portHints={["pin1"]} pcbX="-1.999996mm" pcbY="1.249934mm" outerDiameter="1.2999974mm" holeDiameter="0.7999984mm" shape="circle" />
<platedhole portHints={["pin2"]} pcbX="0mm" pcbY="1.249934mm" outerDiameter="1.2999974mm" holeDiameter="0.7999984mm" shape="circle" />
<platedhole portHints={["pin3"]} pcbX="1.999996mm" pcbY="1.249934mm" outerDiameter="1.2999974mm" holeDiameter="0.7999984mm" shape="circle" />
<platedhole portHints={["pin4"]} pcbX="-1.999996mm" pcbY="-1.249934mm" outerDiameter="1.2999974mm" holeDiameter="0.7999984mm" shape="circle" />
<platedhole portHints={["pin5"]} pcbX="0mm" pcbY="-1.249934mm" outerDiameter="1.2999974mm" holeDiameter="0.7999984mm" shape="circle" />
<platedhole portHints={["pin6"]} pcbX="1.999996mm" pcbY="-1.249934mm" outerDiameter="1.2999974mm" holeDiameter="0.7999984mm" shape="circle" />
<platedhole portHints={["pin7"]} pcbX="-4.100068mm" pcbY="0mm" holeWidth="0.700024mm" holeHeight="1.5000224mm" outerWidth="1.2999974mm" outerHeight="2.1999956mm" shape="pill" />
<platedhole portHints={["pin8"]} pcbX="4.100068mm" pcbY="0mm" holeWidth="0.700024mm" holeHeight="1.5000224mm" outerWidth="1.2999974mm" outerHeight="2.1999956mm" shape="pill" />
<silkscreenpath strokeWidth={0.15} route={[{"x":-4.2999913999999535,"y":1.278331200000025},{"x":-4.2999913999999535,"y":3.4999930000000177}]} />
<silkscreenpath strokeWidth={0.15} route={[{"x":4.29999139999984,"y":-1.278356600000052},{"x":4.29999139999984,"y":-3.399993199999926},{"x":-4.2999913999999535,"y":-3.399993199999926},{"x":-4.2999913999999535,"y":-1.278356600000052}]} />
<silkscreenpath strokeWidth={0.15} route={[{"x":-4.2999913999999535,"y":3.4999930000000177},{"x":4.29999139999984,"y":3.4999930000000177},{"x":4.29999139999984,"y":1.278331200000025}]} />
<fabricationnotepath route={[{"x":-2.354325999999901,"y":-3.399993199999926},{"x":-2.354325999999901,"y":-5.172989400000006},{"x":-1.02699819999998,"y":-5.172989400000006},{"x":-1.02699819999998,"y":-3.399993199999926},{"x":-0.8999982000000273,"y":-3.5269931999999926},{"x":-0.7729981999999609,"y":-3.399993199999926},{"x":-0.7729981999999609,"y":-5.2999893999999586},{"x":-0.8101956387893097,"y":-5.389791961210676},{"x":-0.8999982000000273,"y":-5.426989400000025},{"x":-2.4813259999999673,"y":-5.426989400000025},{"x":-2.5711285612107986,"y":-5.389791961210676},{"x":-2.60832599999992,"y":-5.2999893999999586},{"x":-2.60832599999992,"y":-3.399993199999926},{"x":-2.4813259999999673,"y":-3.5269931999999926},{"x":-2.354325999999901,"y":-3.399993199999926}]} strokeWidth="0mm" isFilled hasStroke={false} />
<courtyardoutline outline={[{"x":-5.000066699999934,"y":3.492995800000017},{"x":5.000066699999934,"y":3.492995800000017},{"x":5.000066699999934,"y":-5.136985399999958},{"x":-5.000066699999934,"y":-5.136985399999958},{"x":-5.000066699999934,"y":3.492995800000017}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5274511.obj?uuid=220e12fe2bfc44bb8905d4a0e6d4c54c",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5274511.step?uuid=220e12fe2bfc44bb8905d4a0e6d4c54c",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0.004999999999999893, y: 2.9719947999999707, z: -4.7000056 },
}}
{...props}
/>
)
}