Commit Graph

178 Commits

Author SHA1 Message Date
Matthew Lai 7a9f077f62
Merge pull request #96 from matthewlai/matthewlai-patch-1
Update test-requirements.txt
2023-05-15 11:56:33 +01:00
Matthew Lai 77c67126a6
Update cpl_fix_rotations.py
Removed unused import
2023-05-15 11:50:31 +01:00
Matthew Lai c89dc7e723
Update test-requirements.txt
Added importlib-metadata requirement for flake compatibility
2023-05-15 11:48:32 +01:00
Matthew Lai cc41212d54
Merge pull request #94 from twam/offset
Add support for offset correction
2023-05-15 11:27:06 +01:00
Tobias Müller cc56652219 Always do offset correction 2023-05-15 08:14:01 +02:00
Matthew Lai 55c1ec985b
Merge pull request #93 from bieber/master
Update BOM Header and WS2812B Rotation
2023-05-02 18:20:39 +01:00
Tobias Müller 8c8948505d Add support for offset correction 2022-12-20 08:50:42 +01:00
Robert Bieber b5476eb928 Update BOM Header and WS2812B Rotation
When preparing a PCB order tonight, I needed two changes to the
existing script.  First, the header for the LCSC Part # field is now
expected to be "LCSC Part Number" per the instructions page[0].
Second, I've found that removing the rotation modifier yields the
correct orientation for the WS2812B LEDs that JLCPCB currently stocks
so I removed it from the database.

[0] - https://support.jlcpcb.com/article/84-how-to-generate-the-bom-and-centroid-file-from-kicad
2022-11-08 01:49:17 -08:00
Matthew Lai 299ce3493c
Merge pull request #92 from blocktrron/quectel-l80-rotation
rotations: add Quectel L80-R
2022-09-29 09:27:16 +01:00
David Bauer 92a11a92b6 rotations: add Quectel L80-R
The Quectel L80-R needs to be rotated by -90 degrees.

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-09-29 00:50:38 +02:00
Matthew Lai c42753224d
Merge pull request #89 from purdeaandrei/bugfix_for_recent_regression_and_update_bottom_layer_rotation_calculation
Bugfix for recent regression and update bottom layer rotation calculation
2022-07-31 18:52:45 +01:00
Matthew Lai c5eb65b10d
Merge pull request #88 from Shackmeister/Molex_53261
Minor rotation updates
2022-07-31 18:50:34 +01:00
Purdea Andrei a635c1f19e Update how bottom layer rotations are calculated, to match current JLCPCB behaviour (as first noticed on 2022 Jul 31). 2022-07-31 16:20:27 +03:00
Purdea Andrei 703821e64f Refactor how bottom layer rotations are calculated, for better clarity. (no functional change)
This splits up bottom layer calculations in two halves:
1) The Kicad-specific half, of corrections needing to be applied with a negative sign on the bottom layer
2) The JLCPCB-specific half, of how to further tweak the rotation numbers on the bottom for it to be correctly handled by JLCPCB.
2022-07-31 16:19:14 +03:00
Purdea Andrei aae93ecefa Bugfix for recent regression of using value "correction" which is out of scope.
This was introduced in commit 5ecf6c9b13
"correction" will simply contain the last correction that was in the database.
Instead, last_correction is the correct value for the last correction with a
matching pattern.
2022-07-31 16:17:40 +03:00
Frank Severinsen f0c2a36413 Minor rotation updates 2022-07-29 14:24:42 +02:00
Matthew Lai 5ecf6c9b13 Added support for multiple matching rules
We now use the last matching rule when there are multiple matches. This allows local overrides as well as rules defined in order of specificity. This relies on Python 3.7+ ordered dicts.
2022-07-23 10:26:56 +01:00
Matthew Lai feabc95236
Merge pull request #87 from Shackmeister/UDFN-10
Added UDFN Rotation
2022-07-07 10:38:52 +01:00
Frank Severinsen 43dad39674 Added UDFN Rotation 2022-07-06 21:59:54 +02:00
Kiara Navarro 3d146c571d
Merge branch 'Shackmeister-Rotations' 2022-06-28 18:44:10 -05:00
Frank Severinsen e51568a91d Adding more rotations 2022-06-28 23:56:40 +02:00
Matthew Lai 812fb94380
Merge pull request #85 from Shackmeister/USON-10
Added USON-10 rotation
2022-06-26 01:24:39 +01:00
Frank Severinsen 74f952ec1d Couple of extra additions/fixes 2022-06-25 03:11:38 +02:00
Frank Severinsen db3b26b578 Added USON-10 rotation 2022-06-25 00:32:14 +02:00
Matthew Lai 0f93ce5693
Merge pull request #84 from Shackmeister/Buttonrotation
add rotation for Panasonic button
2022-05-31 13:47:01 +01:00
Frank Severinsen 9da525bc65 add rotation for Panasonic button 2022-05-31 00:47:01 +02:00
Matthew Lai 2280d42117
Merge pull request #83 from Shackmeister/Picoblade
Add rotation for picoblade
2022-04-05 01:21:02 +01:00
Frank Severinsen 2947cbb93b Add rotation for picoblade 2022-04-04 22:05:58 +02:00
Matthew Lai e059b0057d
Merge pull request #81 from jabdoa2/patch-2
Uppercase designators
2022-03-13 21:00:33 +00:00
Jan Kantert 9a1956a717 uppercase part reference 2022-03-13 21:03:35 +01:00
jabdoa2 94b17f12f2
Uppercase designators
It seems like JLCPCB does not process any parts with lowercase designators. This unconditionally uppercases them.
2022-03-13 17:52:06 +01:00
Matthew Lai 8d1de2a225
Merge pull request #80 from jabdoa2/patch-1
Add WS2812B
2022-02-18 17:48:10 +00:00
jabdoa2 d4567c238e
Add WS2812B
This 5050 LED seems to be rotated by 180 by default.
2022-02-18 01:35:14 +01:00
Matthew Lai d3aea95178
Merge pull request #79 from purdeaandrei/correctly_fix_bottom_layer_rotations_to_follow_latest_jlcpcb_changes
Correctly fix bottom layer rotations for all component adjustments.
2022-02-14 02:13:55 +00:00
Purdea Andrei d88b71580e Correctly fix bottom layer rotations for all component adjustments.
It looks like JLCPCB has changed how they interpret bottom layer rotations.
Pull request https://github.com/matthewlai/JLCKicadTools/pull/78 has tried to address it
but it was incomplete.
This commit corrects bottom layer rotation for all component types.
2022-02-14 03:15:48 +02:00
Matthew Lai 45476ee19a
Merge pull request #78 from matthew-s-SNAP/master
Fixed rotation of components on the bottom of the board
2022-02-04 13:48:14 +00:00
matthew-s-SNAP 61b152fdc6
Fixed rotation of components on the bottom of the board
If a component has a rotation offset of 0° or 180°, it will be 180° off if it is on the bottom of the board. 
This fix does not affect components with 90° or 270° offsets, which I assume is what this script was tested with.
2022-02-04 08:32:02 +13:00
Matthew Lai 95d10b8a10
Merge pull request #77 from matthew-s-SNAP/patch-1
Added TO-277 Packages, wider ESP32 support
2021-12-07 21:09:09 +00:00
matthew-s-SNAP d587879df1
Increased specificity of the ESP32 check
Prevents blank footprints from being targeted
2021-12-08 08:08:11 +13:00
matthew-s-SNAP c283521af7
Changed to work for all ESP32 packages
Both the WROVER and the WROOM need to be rotated -90 degrees, suggesting all ESP32s likely have the same rotation offset
2021-12-07 14:11:00 +13:00
matthew-s-SNAP af7858f35c
Added TO-277 packages and the ESP32-Wrover 2021-12-07 14:07:16 +13:00
Matthew Lai 4f59301f79
Merge pull request #75 from ademuri/master
Include LCSC part number when grouping parts.
2021-11-22 19:41:56 +00:00
Adam Demuri ef9d3cdfc8 Include LCSC part number when grouping parts.
I'm working on a design which uses multiple LED colors, with the same
footprint. Without this change, I get the error message:

[ERROR] Components D4, D3, D2 from same group have different LCSC part numbers:                 C2286, C72043
2021-11-22 12:38:53 -07:00
Matthew Lai 73057998b2
Merge pull request #71 from Shackmeister/CP_EIA-7343-31_Kemet-D
added CP rotation
2021-11-04 22:25:11 +00:00
Frank Severinsen cca38005d8 Unify all EIA 2021-11-04 22:19:44 +01:00
Matthew Lai 92cb687ece
Update cpl_rotations_db.csv 2021-10-29 02:48:38 +01:00
kroesche 3fbd99d1e9
Move dependency requirements to setup.py from requirements.txt (#73)
* Move dependency requirements to setup.py from requirements.txt
2021-09-24 09:56:20 -03:00
Frank Severinsen 54c4cf8e20 CP_EIA-7343-40_Kemet-Y 2021-08-02 21:19:53 +02:00
Frank Severinsen 4a21458f24 added CP rotation 2021-08-02 21:14:07 +02:00
Matthew Lai 6f955db5a0
Merge pull request #68 from Shackmeister/master
CP_EIA-7343-43_Kemet-X fix rotation
2021-07-22 22:48:12 +01:00