Skip to content

Create a new library for DEGSON connectors and add a script generator for DEGSON DG35C-B-XXP-1Y-00A(H) series

For the datasheet for this connector go to https://www.degson.com/content/details_552_878276.html?lang=en and select Download.

I have tried to use some of the footprint generator functions in tools/ but none looked like being able to properly draw the barriers. In the end I copy-pasted one of the functions from scripts/tools/footprint_scripts_terminal_blocks.py and stripped it down to the bare minimum required. If there is a better approach I am open to suggestions.

The link to a merge requests for kicad-footprints is: kicad-footprints!3233

Tests did not return anything suspicious (apart from the errors already in master):

$ bash manage.sh tests     

[!] Running unit tests
........................./home/enki/repos/gitlab.com/mgrela/kicad-footprint-generator/KicadModTree/tests/../../KicadModTree/PolygonPoints.py:135: Warning: No geometry checks are implement for cutting polygons.
Make sure the second polygon is fully inside the main polygon
Check resulting polygon carefully.
  warnings.warn(
..........................................
----------------------------------------------------------------------
Ran 67 tests in 0.252s

OK

[!] Running pep8 check
/home/enki/repos/gitlab.com/mgrela/kicad-footprint-generator/KicadModTree/FileHandler.py:57:45: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
/home/enki/repos/gitlab.com/mgrela/kicad-footprint-generator/KicadModTree/nodes/specialized/PadArray.py:215:14: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
/home/enki/repos/gitlab.com/mgrela/kicad-footprint-generator/KicadModTree/nodes/specialized/PadArray.py:221:14: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
/home/enki/repos/gitlab.com/mgrela/kicad-footprint-generator/KicadModTree/nodes/specialized/PadArray.py:254:20: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

I also verified the footprint by printing it out and comparing with the connector I have on hand from this series.

Merge request reports