-
Notifications
You must be signed in to change notification settings - Fork 9
make QFP rectangle #8
base: master
Are you sure you want to change the base?
Conversation
Please follow the issue template. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks generally good. The only comments are inconsistencies in the formatting. We don't have a fixed Python style but we do need to be consistent within the file.
array = PA.PadLineArray(v_pad, pads_per_row, pad_pitch, False, pin1Pos) | ||
array.SetFirstPadInArray(pads_per_row + 1) | ||
array = PA.PadLineArray(v_pad, pads_per_col, pad_pitch, False, pin1Pos) | ||
array.SetFirstPadInArray( pads_per_row + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to stay consistent in spacing
array.AddPadsToModule(self.draw) | ||
|
||
#right row | ||
pin1Pos = pcbnew.wxPoint(h_pitch / 2, 0) | ||
array = PA.PadLineArray(h_pad, pads_per_row, -pad_pitch, True, | ||
pin1Pos) | ||
array.SetFirstPadInArray(2*pads_per_row + 1) | ||
array.SetFirstPadInArray( pads_per_row + pads_per_col + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space at start
pin1Pos) | ||
array.SetFirstPadInArray(3*pads_per_row + 1) | ||
array.SetFirstPadInArray( 2*pads_per_row + pads_per_col + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space at start and missing spaces around '*'.
sizex = (right_edge + cmargin) * 2 | ||
sizey = (bottom_edge + cmargin) * 2 | ||
self.draw.SetLayer( pcbnew.F_CrtYd ) | ||
sizex = ( right_edge + cmargin ) * 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't add extra spaces here unless you are going to be consistent with them through the file.
ping @bigrom26 |
Replace this line with your commit message! Please provide a description of your pull request
Thanks for creating a pull request to contribute to the KiCad footprint wizards! To speed up integration of your PR, please check the following items: