#NEWLINE# def pads( conf ) : #NEWLINE# #INDENT# out = [ ] #NEWLINE# layers = [ 'F.Cu' , 'F.Mask' , 'F.Paste' ] #NEWLINE# size_lr = conf [ 'pad_shape' ] #NEWLINE# size_tb = ( size_lr [ 1 ] , size_lr [ 0 ] ) #NEWLINE# shape = 'rect' #NEWLINE# skip = conf . get ( 'skip_pins' , [ ] ) #NEWLINE# ( leftr , btmr , rightr , topr ) = pin_centres ( conf ) #NEWLINE# num = 1 #NEWLINE# idx = 1 #NEWLINE# ( num , idx , pins ) = pad_row ( leftr , num , idx , shape , size_lr , num , skip ) #NEWLINE# out += pins #NEWLINE# if ( conf [ 'rows' ] == 4 ) : #NEWLINE# #INDENT# ( num , idx , pins ) = pad_row ( btmr , num , idx , shape , size_tb , layers , skip ) #NEWLINE# out += pins #NEWLINE# #UNINDENT# ( num , idx , pins ) = pad_row ( rightr , num , idx , shape , size_lr , layers , skip ) #NEWLINE# out += pins #NEWLINE# if ( conf [ 'rows' ] == 4 ) : #NEWLINE# #INDENT# ( num , idx , pins ) = pad_row ( topr , num , idx , shape , size_tb , layers , skip ) #NEWLINE# out += pins #NEWLINE# #UNINDENT# if ( 'ep_shape' in conf ) : #NEWLINE# #INDENT# out += exposed_pad ( conf ) #NEWLINE# #UNINDENT# return out