Skip to content

Commit

Permalink
[Tests][Position][Rotated][Added] Rotate from fields and extended
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 22, 2024
1 parent 122cc94 commit 2b5c88c
Show file tree
Hide file tree
Showing 6 changed files with 1,909 additions and 2 deletions.
607 changes: 607 additions & 0 deletions tests/board_samples/kicad_7/rotations.kicad_pcb

Large diffs are not rendered by default.

319 changes: 319 additions & 0 deletions tests/board_samples/kicad_7/rotations.kicad_sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
(kicad_sch (version 20230121) (generator eeschema)
(uuid 62678280-0f70-4751-9539-16a7637ad202)
(paper "A4")
(lib_symbols
(symbol "Device:Q_NPN_BCE" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
(property "Reference" "Q" (at 5.08 1.27 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 5.08 -1.27 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (at 5.08 2.54 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "transistor NPN" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "NPN transistor, base/collector/emitter" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "Q_NPN_BCE_0_1"
(polyline
(pts
(xy 0.635 0.635)
(xy 2.54 2.54)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy 0.635 -0.635)
(xy 2.54 -2.54)
(xy 2.54 -2.54)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy 0.635 1.905)
(xy 0.635 -1.905)
(xy 0.635 -1.905)
)
(stroke (width 0.508) (type default))
(fill (type none))
)
(polyline
(pts
(xy 1.27 -1.778)
(xy 1.778 -1.27)
(xy 2.286 -2.286)
(xy 1.27 -1.778)
(xy 1.27 -1.778)
)
(stroke (width 0) (type default))
(fill (type outline))
)
(circle (center 1.27 0) (radius 2.8194)
(stroke (width 0.254) (type default))
(fill (type none))
)
)
(symbol "Q_NPN_BCE_1_1"
(pin input line (at -5.08 0 0) (length 5.715)
(name "B" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 2.54 5.08 270) (length 2.54)
(name "C" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 2.54 -5.08 90) (length 2.54)
(name "E" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
)
)
)
(symbol (lib_id "Device:Q_NPN_BCE") (at 55.88 50.8 0) (unit 1)
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
(uuid 156101ec-1111-4dbd-9ddd-f335c334c5b7)
(property "Reference" "Q1" (at 60.96 49.53 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 60.96 52.07 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-23-3" (at 60.96 48.26 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 55.88 50.8 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid c57dfe8c-0e57-4859-aae1-1f01fb010188))
(pin "2" (uuid 2f8418a7-f85f-400a-942e-8c3ebdff437a))
(pin "3" (uuid 6344e33c-3e1f-4c65-8906-75bde7313f09))
(instances
(project "rotations"
(path "/62678280-0f70-4751-9539-16a7637ad202"
(reference "Q1") (unit 1)
)
)
)
)
(symbol (lib_id "Device:Q_NPN_BCE") (at 106.68 76.2 0) (unit 1)
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
(uuid 1bdf9d0a-89c2-4af6-85cb-bc7ceea16049)
(property "Reference" "Q7" (at 111.76 74.93 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 111.76 77.47 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-23-3" (at 111.76 73.66 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 106.68 76.2 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "JLCRotOffset" "270" (at 106.68 76.2 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 8c028030-d210-4106-8ae5-33d3c507581b))
(pin "2" (uuid 05a4b222-288c-4819-b87e-132d0f74c933))
(pin "3" (uuid ad66ae14-d42f-4558-97f1-d74f34f046a5))
(instances
(project "rotations"
(path "/62678280-0f70-4751-9539-16a7637ad202"
(reference "Q7") (unit 1)
)
)
)
)
(symbol (lib_id "Device:Q_NPN_BCE") (at 81.28 76.2 0) (unit 1)
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
(uuid 30137d82-173a-4494-81da-85c3939d39ec)
(property "Reference" "Q6" (at 86.36 74.93 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 86.36 77.47 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-23" (at 86.36 73.66 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 81.28 76.2 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid f9e51b32-d800-4b61-866e-6679f2122771))
(pin "2" (uuid 0cfa6c54-3419-4d4e-83cf-fd9990577427))
(pin "3" (uuid f9e778be-b81f-4b75-9705-c694b4c1d56d))
(instances
(project "rotations"
(path "/62678280-0f70-4751-9539-16a7637ad202"
(reference "Q6") (unit 1)
)
)
)
)
(symbol (lib_id "Device:Q_NPN_BCE") (at 55.88 76.2 0) (unit 1)
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
(uuid 692ee82b-0f4b-42f0-a84a-e4814784d25d)
(property "Reference" "Q5" (at 60.96 74.93 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 60.96 77.47 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-23-3" (at 60.96 73.66 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 55.88 76.2 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 7cb042f0-80f2-4bb4-82fb-a16e19baf06c))
(pin "2" (uuid 9e8bc0e1-5ccc-4db7-8a0c-6e19f2be70f6))
(pin "3" (uuid 00070ef0-2df8-464f-a118-411bed92e20e))
(instances
(project "rotations"
(path "/62678280-0f70-4751-9539-16a7637ad202"
(reference "Q5") (unit 1)
)
)
)
)
(symbol (lib_id "Device:Q_NPN_BCE") (at 81.28 50.8 0) (unit 1)
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
(uuid 998825bf-b119-4086-8284-b9c9d4168399)
(property "Reference" "Q2" (at 86.36 49.53 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 86.36 52.07 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-23-3" (at 86.36 48.26 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 81.28 50.8 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 18090092-5cc9-48d6-beca-80c63faaccf8))
(pin "2" (uuid 132ad4f9-782e-42c6-8d3d-5e9029e73512))
(pin "3" (uuid f688cbaa-07df-47e2-81c0-840e4192d57e))
(instances
(project "rotations"
(path "/62678280-0f70-4751-9539-16a7637ad202"
(reference "Q2") (unit 1)
)
)
)
)
(symbol (lib_id "Device:Q_NPN_BCE") (at 106.68 50.8 0) (unit 1)
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
(uuid a6627712-868c-47c9-a4e7-41e82a8eb9ab)
(property "Reference" "Q3" (at 111.76 49.53 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 111.76 52.07 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-23-3" (at 111.76 48.26 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 106.68 50.8 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "JLCRotOffset" "270" (at 106.68 50.8 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid f8a8791f-97f0-4ab4-9120-a6e27bf18b29))
(pin "2" (uuid 9425985b-2b20-4cea-b5d4-97a86a105d2c))
(pin "3" (uuid ab25e399-8e4b-4832-8847-4d2e76d6d6e2))
(instances
(project "rotations"
(path "/62678280-0f70-4751-9539-16a7637ad202"
(reference "Q3") (unit 1)
)
)
)
)
(symbol (lib_id "Device:Q_NPN_BCE") (at 132.08 50.8 0) (unit 1)
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
(uuid b68f53ba-e083-4318-8fe6-5b0470e92732)
(property "Reference" "Q4" (at 137.16 49.53 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 137.16 52.07 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-23-3" (at 137.16 48.26 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 132.08 50.8 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "JLCPosOffset" "1,1" (at 132.08 50.8 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 90fbce9f-2520-4eb7-aeb3-4bd1b4cfe237))
(pin "2" (uuid 7842b0b7-4f47-483d-bb55-e8d8f552eeb3))
(pin "3" (uuid 8f645e40-6fc4-4e28-bdb0-f99a181d7d37))
(instances
(project "rotations"
(path "/62678280-0f70-4751-9539-16a7637ad202"
(reference "Q4") (unit 1)
)
)
)
)
(symbol (lib_id "Device:Q_NPN_BCE") (at 132.08 76.2 0) (unit 1)
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
(uuid e07970ec-8763-4699-bcef-1f4bcab9f123)
(property "Reference" "Q8" (at 137.16 74.93 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Q_NPN_BCE" (at 137.16 77.47 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_TO_SOT_SMD:SOT-23-3" (at 137.16 73.66 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 132.08 76.2 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "JLCPosOffset" "1,1" (at 132.08 76.2 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid cd2ae6bb-0dfc-4acc-9144-d2b06b466415))
(pin "2" (uuid d911d119-fa1e-4fc2-b881-f9fa5d930985))
(pin "3" (uuid b6e2000d-ad33-4dbb-b13a-3de39100dabd))
(instances
(project "rotations"
(path "/62678280-0f70-4751-9539-16a7637ad202"
(reference "Q8") (unit 1)
)
)
)
)
(sheet_instances
(path "/" (page "1"))
)
)
Loading

0 comments on commit 2b5c88c

Please sign in to comment.