MustafaMulla29/wireless-mouse-pcb

A hardware component library defining footprints and 3D models for a 3.3 V regulator, RF antenna, switches, connectors, battery charger, and nRF52810 Bluetooth microcontroller.

Version
1.0.9
License
unset
Stars
0

imports/XL_3332RGBC_2812B.tsx

import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["VDD"],
  pin2: ["DI"],
  pin3: ["DO"],
  pin4: ["GND"]
} as const

const pinAttributes = {
  pin1: {requiresPower: true},
  pin4: {requiresGround: true}
} as const

export const XL_3332RGBC_2812B = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C42400839"
  ]
}}
      manufacturerPartNumber="XL-3332RGBC-2812B"
      footprint={<footprint>
        <smtpad portHints={["pin4"]} pcbX="0mm" pcbY="-1.324864mm" width="3.1999936mm" height="0.6500114mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="1.050036mm" pcbY="0mm" width="1.0999978mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-1.050036mm" pcbY="0mm" width="1.0999978mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="0mm" pcbY="1.324864mm" width="3.1999936mm" height="0.6500114mm" shape="rect" />
<silkscreenrect pcbX="0mm" pcbY="0mm" width="3.81mm" height="3.81mm" strokeWidth="0.254mm" />
<silkscreentext text="DOUT" pcbX="0.4482846mm" pcbY="-0.045466mm" anchorAlignment="bottom_left" fontSize="0.999998mm" />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="2.9558mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-0.5079999999999245,"y":-1.4605000000000246},{"x":0.5080000000000382,"y":-1.4605000000000246},{"x":0.5080000000000382,"y":-1.5874999999999773},{"x":-0.5079999999999245,"y":-1.5874999999999773},{"x":-0.5079999999999245,"y":-1.4605000000000246}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-0.06349999999997635,"y":0.9524999999999864},{"x":-0.06349999999997635,"y":1.968499999999949},{"x":0.06350000000009004,"y":1.968499999999949},{"x":0.06350000000009004,"y":0.9524999999999864},{"x":-0.06349999999997635,"y":0.9524999999999864}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-0.5079999999999245,"y":1.5874999999999773},{"x":0.5080000000000382,"y":1.5874999999999773},{"x":0.5080000000000382,"y":1.4605000000000246},{"x":-0.5079999999999245,"y":1.4605000000000246},{"x":-0.5079999999999245,"y":1.5874999999999773}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-0.7434580000000324,"y":0.12707620000003317},{"x":-0.7434580000000324,"y":-0.17292320000001382},{"x":-0.8184642000001077,"y":-0.24792939012115767},{"x":-0.8934703999999556,"y":-0.17292320000001382},{"x":-0.8934703999999556,"y":0.12707620000003317},{"x":-0.8184642000001077,"y":0.2020823901212907},{"x":-0.7434580000000324,"y":0.12707620000003317}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-1.1429999999999154,"y":0.1269999999999527},{"x":-1.1429999999999154,"y":-0.12288520000004155},{"x":-1.0790428000000247,"y":-0.12288520000004155},{"x":-1.0456925999999385,"y":-0.023012399999970512},{"x":-1.0790428000000247,"y":0.07726680000007491},{"x":-1.0830813999998554,"y":0.07726680000007491},{"x":-1.1303342692521028,"y":0.1272031999999399},{"x":-1.0830813999998554,"y":0.17713960000003226},{"x":-1.043127199999958,"y":0.17713960000003226},{"x":-1.0138531022678308,"y":0.16767975660582124},{"x":-0.9956545999999662,"y":0.14287500000000364},{"x":-0.9455911999999671,"y":-0.007137400000033267},{"x":-0.9430048009206757,"y":-0.023012399999970512},{"x":-0.9455911999999671,"y":-0.038887400000021444},{"x":-0.9956545999999662,"y":-0.18867120000004434},{"x":-1.0138996969789105,"y":-0.2133551874320574},{"x":-1.043127199999958,"y":-0.22273259999997208},{"x":-1.1930887999999413,"y":-0.22273259999997208},{"x":-1.2283933137997565,"y":-0.2080932648750604},{"x":-1.2430505999998331,"y":-0.1727961999999934},{"x":-1.2430505999998331,"y":0.1269999999999527},{"x":-1.1429999999999154,"y":0.1269999999999527}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":0.4980686000000105,"y":0.254330199999913},{"x":0.4980686000000105,"y":0.004445000000032451},{"x":0.5620258000001286,"y":0.004445000000032451},{"x":0.5953760000001012,"y":0.1043177999999898},{"x":0.5620258000001286,"y":0.20459700000003522},{"x":0.5579872000000705,"y":0.20459700000003522},{"x":0.5109552605086947,"y":0.25452069999994364},{"x":0.5579872000000705,"y":0.30444439999996575},{"x":0.5979413999999679,"y":0.30444439999996575},{"x":0.6272096603016735,"y":0.2949948547504846},{"x":0.6454139999999597,"y":0.27020519999996395},{"x":0.6954774000000725,"y":0.12019280000004073},{"x":0.6980637990794776,"y":0.1043177999999898},{"x":0.6954774000000725,"y":0.08844279999993887},{"x":0.6454140000001871,"y":-0.06136639999988347},{"x":0.6271689030210155,"y":-0.08605038743189652},{"x":0.5979413999999679,"y":-0.09542780000003859},{"x":0.4480052000000114,"y":-0.09542780000003859},{"x":0.412684276697064,"y":-0.08079742922700461},{"x":0.3980179999999791,"y":-0.045491399999946225},{"x":0.3980179999999791,"y":0.254330199999913},{"x":0.4980686000000105,"y":0.254330199999913}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":0.8551418000000695,"y":0.2209292000000005},{"x":0.832586600000127,"y":0.21521419999999125},{"x":0.7980934000000843,"y":0.16817340000000058},{"x":0.7980934000000843,"y":0.0893317999999681},{"x":0.8173974000000044,"y":0.04239260000008471},{"x":0.8493760000001203,"y":0.040360599999985425},{"x":0.87571580000008,"y":0.05803900000012163},{"x":0.8825484000000188,"y":0.12176759999999831},{"x":0.869188000000122,"y":0.18404839999993783},{"x":0.9078190045728434,"y":0.24226258911733112},{"x":0.966952600000127,"y":0.20505419999994956},{"x":0.9819132000001218,"y":0.13510259999998198},{"x":0.9830053617934027,"y":0.12720167379927716},{"x":0.9828276000001779,"y":0.11922759999993104},{"x":0.9727184000000761,"y":0.024028400000020156},{"x":0.9656854827385359,"y":0.0035009296678936153},{"x":0.950620400000048,"y":-0.01211579999994683},{"x":0.8908288000001221,"y":-0.052146200000038334},{"x":0.8760188650818463,"y":-0.05885126941825547},{"x":0.859840800000029,"y":-0.06045199999994111},{"x":0.779932400000007,"y":-0.05539740000006077},{"x":0.7538571059278638,"y":-0.046203964002529574},{"x":0.7366508000001204,"y":-0.024561800000014955},{"x":0.7017766000001302,"y":0.060578999999961525},{"x":0.6989702774538955,"y":0.06981885638890617},{"x":0.697992000000113,"y":0.07942579999996724},{"x":0.697992000000113,"y":0.18458180000004631},{"x":0.7005051993896814,"y":0.2000717580096989},{"x":0.7076948000001266,"y":0.21402039999998124},{"x":0.7626858000000993,"y":0.28905199999996967},{"x":0.7751447287489555,"y":0.30107382596895604},{"x":0.7909560000000511,"y":0.3081273999998757},{"x":0.8308340000000953,"y":0.31783020000000306},{"x":0.8891035018053799,"y":0.2809478863506456},{"x":0.8551418000000695,"y":0.22092920000011418},{"x":0.8551418000000695,"y":0.2209292000000005}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":1.1029187999999976,"y":0.26946859999998196},{"x":1.1029187999999976,"y":0.056235600000036357},{"x":1.1139932000000954,"y":0.03456940000000941},{"x":1.1399774000001344,"y":0.03456940000000941},{"x":1.16852700000004,"y":0.044018199999982244},{"x":1.1827510000001666,"y":0.08702040000002853},{"x":1.1780266000000665,"y":0.2531364000000167},{"x":1.2266511896697239,"y":0.3037246840382295},{"x":1.2780010000001312,"y":0.2559049999999843},{"x":1.2830810000000383,"y":0.08097520000001168},{"x":1.28250113476372,"y":0.07226041425371932},{"x":1.280414000000178,"y":0.06377939999993032},{"x":1.2554966000001286,"y":-0.011201400000004469},{"x":1.2433849869966025,"y":-0.030839786996580187},{"x":1.2237466000001405,"y":-0.042951399999992645},{"x":1.163904200000161,"y":-0.06316980000008243},{"x":1.1560610283377173,"y":-0.06497901751117752},{"x":1.1480292000002237,"y":-0.06550660000004882},{"x":1.0830052000000023,"y":-0.06550660000004882},{"x":1.056720738726085,"y":-0.05805192962623096},{"x":1.0382758000002923,"y":-0.03789679999999862},{"x":1.0083546000000752,"y":0.022148799999968105},{"x":1.0043501983930128,"y":0.032997252170275715},{"x":1.0029444000000467,"y":0.04447540000001027},{"x":1.0029444000001604,"y":0.26946859999998196},{"x":1.0529316000001927,"y":0.3178874638481375},{"x":1.1029187999999976,"y":0.26946859999998196}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":1.4731238000001667,"y":0.2621025999999347},{"x":1.4729714000001195,"y":-0.020396200000050158},{"x":1.4229969000001574,"y":-0.06845700377391495},{"x":1.373022399999968,"y":-0.020396200000050158},{"x":1.373022399999968,"y":0.2621025999999347},{"x":1.4731238000001667,"y":0.2621025999999347}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":1.5094966000001477,"y":0.21447760000000926},{"x":1.3294106000000738,"y":0.20957539999994879},{"x":1.2797657472817718,"y":0.2581762183142473},{"x":1.3265912000001663,"y":0.3094989999999598},{"x":1.5067026000001533,"y":0.3145789999999806},{"x":1.5094966000001477,"y":0.21447760000000926}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-1.6509999999999536,"y":-0.88900000000001},{"x":-1.0159999999999627,"y":-0.88900000000001},{"x":-1.0159999999999627,"y":-1.143000000000029},{"x":-1.6509999999999536,"y":-1.143000000000029},{"x":-1.6509999999999536,"y":-0.88900000000001}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-2.1549999999999727,"y":2.205799999999954},{"x":2.1550000000000864,"y":2.205799999999954},{"x":2.1550000000000864,"y":-2.180400000000077},{"x":-2.1549999999999727,"y":-2.180400000000077},{"x":-2.1549999999999727,"y":2.205799999999954}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C42400839.obj?uuid=154f809ff8fb4ca58147a2f6b9563f74",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C42400839.step?uuid=154f809ff8fb4ca58147a2f6b9563f74",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: -0.003143199999956603, z: -0.01 },
      }}
      {...props}
    />
  )
}