Skip to content

Commit

Permalink
[Tests][Add] Simple test for EasyEDA download
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 12, 2024
1 parent a424faa commit b752882
Show file tree
Hide file tree
Showing 10 changed files with 1,430 additions and 2 deletions.
6 changes: 6 additions & 0 deletions kibot/EasyEDA/easyeda_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
"diffuse_color": ('0.298', '0.298', '0.298'), "specular_color": ('0.398', '0.398', '0.398')}
MATERIAL_EPOXY_04 = {"name": 'IC-BODY-EPOXY-04', "ambient_intensity": 0.293, "shininess": 0.35, "transparency": 0,
"diffuse_color": ('0.148', '0.145', '0.145'), "specular_color": ('0.180', '0.168', '0.160')}
if 'KIBOT_EASYEDA_API' in os.environ:
API_ENDPOINT = os.environ['KIBOT_EASYEDA_API']
if 'KIBOT_EASYEDA_MODEL' in os.environ:
ENDPOINT_3D_MODEL = os.environ['KIBOT_EASYEDA_MODEL']
if 'KIBOT_EASYEDA_STEP' in os.environ:
ENDPOINT_STEP = os.environ['KIBOT_EASYEDA_STEP']


class EasyedaApi:
Expand Down
157 changes: 157 additions & 0 deletions tests/board_samples/kicad_7/easyeda_3d_dl.kicad_pcb
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
(kicad_pcb (version 20221018) (generator pcbnew)

(general
(thickness 1.6)
)

(paper "A4")
(title_block
(title "EasyLight")
(date "2023-01-24")
(rev "1")
(company "MPC")
)

(layers
(0 "F.Cu" signal)
(31 "B.Cu" signal)
(32 "B.Adhes" user "B.Adhesive")
(33 "F.Adhes" user "F.Adhesive")
(34 "B.Paste" user)
(35 "F.Paste" user)
(36 "B.SilkS" user "B.Silkscreen")
(37 "F.SilkS" user "F.Silkscreen")
(38 "B.Mask" user)
(39 "F.Mask" user)
(40 "Dwgs.User" user "User.Drawings")
(41 "Cmts.User" user "User.Comments")
(42 "Eco1.User" user "User.Eco1")
(43 "Eco2.User" user "User.Eco2")
(44 "Edge.Cuts" user)
(45 "Margin" user)
(46 "B.CrtYd" user "B.Courtyard")
(47 "F.CrtYd" user "F.Courtyard")
(48 "B.Fab" user)
(49 "F.Fab" user)
)

(setup
(pad_to_mask_clearance 0)
(pcbplotparams
(layerselection 0x00010fc_ffffffff)
(plot_on_all_layers_selection 0x0000000_00000000)
(disableapertmacros false)
(usegerberextensions false)
(usegerberattributes true)
(usegerberadvancedattributes true)
(creategerberjobfile true)
(dashed_line_dash_ratio 12.000000)
(dashed_line_gap_ratio 3.000000)
(svgprecision 6)
(plotframeref false)
(viasonmask false)
(mode 1)
(useauxorigin false)
(hpglpennumber 1)
(hpglpenspeed 20)
(hpglpendiameter 15.000000)
(dxfpolygonmode true)
(dxfimperialunits true)
(dxfusepcbnewfont true)
(psnegative false)
(psa4output false)
(plotreference true)
(plotvalue true)
(plotinvisibletext false)
(sketchpadsonfab false)
(subtractmaskfromsilk false)
(outputformat 1)
(mirror false)
(drillshape 1)
(scaleselection 1)
(outputdirectory "")
)
)

(net 0 "")
(net 1 "unconnected-(Q1-G-Pad1)")
(net 2 "unconnected-(Q1-S-Pad2)")
(net 3 "unconnected-(Q1-D-Pad3)")

(footprint "lcsc:SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BR" (layer "F.Cu")
(tstamp 00000000-0000-0000-0000-000063c333b0)
(at 58.15 56.83)
(property "JLC Part" "Extended Part")
(property "LCSC Part" "C181094")
(property "Manufacturer" "Hottech(合科泰)")
(property "Sheetfile" "easylight.kicad_sch")
(property "Sheetname" "")
(path "/00000000-0000-0000-0000-000063c09959")
(attr smd)
(fp_text reference "Q1" (at -1 -2.22) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 9b33a85d-99c9-40d1-85ac-5c528167e0a8)
)
(fp_text value "AO3415_C181094" (at 0 4.95) (layer "F.Fab") hide
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 4daee9b0-6454-4943-a6b4-f35911bd1649)
)
(fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 62b9eb0f-a857-45bf-8853-be8680a14b05)
)
(fp_line (start -0.73 -1.53) (end -0.73 -0.49)
(stroke (width 0.15) (type solid)) (layer "F.SilkS") (tstamp 198082e7-fd16-4bcc-a453-c362f6e32fda))
(fp_line (start -0.73 1.53) (end -0.73 0.49)
(stroke (width 0.15) (type solid)) (layer "F.SilkS") (tstamp 0547b963-26d0-46e3-a099-6a3042c9d95d))
(fp_line (start 0.73 -1.53) (end -0.73 -1.53)
(stroke (width 0.15) (type solid)) (layer "F.SilkS") (tstamp 059a3950-9606-41ae-99fc-7eb189da235d))
(fp_line (start 0.73 -0.46) (end 0.73 0.46)
(stroke (width 0.15) (type solid)) (layer "F.SilkS") (tstamp 371fe865-b99c-4662-bca3-ed0a60aea1b4))
(fp_line (start 0.73 1.53) (end -0.73 1.53)
(stroke (width 0.15) (type solid)) (layer "F.SilkS") (tstamp 4054a300-e79b-4b03-80bc-05482f7f30ff))
(fp_circle (center 1.46 1.1) (end 1.56 1.1)
(stroke (width 0.2) (type solid)) (fill none) (layer "Cmts.User") (tstamp 6fc66e31-9797-4feb-8cbe-c9a9c477d9c1))
(fp_circle (center 1.2 1.45) (end 1.23 1.45)
(stroke (width 0.06) (type solid)) (fill none) (layer "F.Fab") (tstamp b1191b58-9204-473b-a209-dad92979664a))
(pad "1" smd rect (at 1 0.95) (size 1.25 0.7) (layers "F.Cu" "F.Paste" "F.Mask")
(net 1 "unconnected-(Q1-G-Pad1)") (pinfunction "G") (pintype "input") (tstamp 4c2e46ba-37cf-4ebf-902f-83c7e46a2e07))
(pad "2" smd rect (at 1 -0.95) (size 1.25 0.7) (layers "F.Cu" "F.Paste" "F.Mask")
(net 2 "unconnected-(Q1-S-Pad2)") (pinfunction "S") (pintype "passive") (tstamp 313209f6-d10e-4aae-a94a-76ff2c84b0dd))
(pad "3" smd rect (at -1 0) (size 1.25 0.7) (layers "F.Cu" "F.Paste" "F.Mask")
(net 3 "unconnected-(Q1-D-Pad3)") (pinfunction "D") (pintype "passive") (tstamp e04686df-bd4f-4b7c-8835-06a4052cb0ea))
(model "D:/Kreativ/PCB/KiCad/lcsc.3dshapes/SOT-23-3P_L2.9-W1.3-H1.0-LS2.4-P0.95.wrl"
(offset (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 180))
)
)

(gr_line (start 88.265 83.185) (end 38.1 83.185)
(stroke (width 0.1) (type solid)) (layer "Edge.Cuts") (tstamp 1c8a1013-289a-4c2b-90ae-12de8f257089))
(gr_line (start 38.1 83.185) (end 38.1 41.91)
(stroke (width 0.1) (type solid)) (layer "Edge.Cuts") (tstamp 68af144e-d59e-4d96-9011-5b3de7fd6305))
(gr_line (start 88.265 41.91) (end 88.265 83.185)
(stroke (width 0.1) (type solid)) (layer "Edge.Cuts") (tstamp a6d21407-bcba-4e0b-b016-3aa8e7575ce4))
(gr_line (start 38.1 41.91) (end 88.265 41.91)
(stroke (width 0.1) (type solid)) (layer "Edge.Cuts") (tstamp ffff2df2-d597-458d-bb58-70042220c9fa))
(dimension (type aligned) (layer "Dwgs.User") (tstamp 2b8cad3b-eb51-440c-8286-447d23f0fb69)
(pts (xy 36.195 83.185) (xy 36.195 41.91))
(height -2.539999)
(gr_text "41.2750 mm" (at 32.505001 62.5475 90) (layer "Dwgs.User") (tstamp 2b8cad3b-eb51-440c-8286-447d23f0fb69)
(effects (font (size 1 1) (thickness 0.15)))
)
(format (prefix "") (suffix "") (units 2) (units_format 1) (precision 4))
(style (thickness 0.15) (arrow_length 1.27) (text_position_mode 0) (extension_height 0.58642) (extension_offset 0) keep_text_aligned)
)
(dimension (type aligned) (layer "Dwgs.User") (tstamp ddf7b9bd-f528-47c4-a028-61cfdea46fde)
(pts (xy 88.265 40.005) (xy 38.1 40.005))
(height 2.54)
(gr_text "50.1650 mm" (at 63.1825 36.315) (layer "Dwgs.User") (tstamp ddf7b9bd-f528-47c4-a028-61cfdea46fde)
(effects (font (size 1 1) (thickness 0.15)))
)
(format (prefix "") (suffix "") (units 2) (units_format 1) (precision 4))
(style (thickness 0.15) (arrow_length 1.27) (text_position_mode 0) (extension_height 0.58642) (extension_offset 0) keep_text_aligned)
)

)
Loading

0 comments on commit b752882

Please sign in to comment.