tscircuit/sparkfun-boards

This code defines a detailed PCB schematic and physical footprint layout for various embedded hardware modules, mapping electrical pins, mechanical mounting holes, and silk-screen annotations for manufacturing and assembly.

Version
0.0.32
License
unset
Stars
3

boards/SparkFun-Tristimulus-Color-Sensor-OPT4048DTSR-Qwiic/imports/OPT4048DTSR.tsx

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

const pinLabels = {
  pin1: ["VDD"],
  pin2: ["ADDR"],
  pin3: ["NC2"],
  pin4: ["GND"],
  pin5: ["SCL"],
  pin6: ["NC1"],
  pin7: ["INT"],
  pin8: ["SDA"],
} as const

export const OPT4048DTSR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      supplierPartNumbers={{
        jlcpcb: ["C6174012"],
      }}
      manufacturerPartNumber="OPT4048DTSR"
      footprint="dfn_p0.5001mm_w2.2602mm_pw0.28mm_pl0.68mm_pin1location(leftside,bottom)"
      {...props}
    />
  )
}