devbisme / KiPart

Python package for generating multi-unit schematic symbols for KiCad from a CSV file.
MIT License
170 stars 46 forks source link

When creating a part from STM32Cube, create a single unit #54

Closed HarjitSi closed 3 years ago

HarjitSi commented 3 years ago

Feature request: Create a schematic symbol with all pins in a single unit.

Solution from XessCorp/Author:

  1. Find the directory where kipart is installed.
  2. Go to the kipart subdirectory.
  3. Copy the stm32cube_reader.py file to my_stm32cube_reader.py
  4. Edit the my_stm32cube_reader.py file as follows:
  5. Line 113: Change the name of the stm32cube_reader(...) function to my_stm32cube_reader(...).
  6. Line 161: Change the assignment to pin.unit = "1" Now you can call kipart using the option "-r my_stm32cube" and all the pins should be assigned to a single unit.

Solution was just tested and works perfectly!