<?xml version='1.0' encoding='UTF-8'?>
#set $fpitch = float($pitch)
#set $mils = int($fpitch * 1000)
<module moduleId="$uuid" >
 <version>1.0</version>
 <author>Fritzing Part-o-matic</author>
 <title>SIP - $pins pins</title>
 <label>U</label>
 <date>$date</date>
 <tags>
  <tag>SIP</tag>
  <tag>fritzing core</tag>
 </tags>
 <properties>
  <property name="family" >Generic IC</property>
  <property name="package" >SIP (Single Inline)</property>
  <property name="pins">$pins</property>
  <property name="spacing">${mils}mil</property>
  <property name="chip label">${label}</property>
 </properties>
 <taxonomy>part.sip.${pins}pins</taxonomy>
 <description>A SIP stand-in part for whatever you want.  With $pins pins on a ${mils} mil single inline package (SIP) footprint.</description>
 <views>
  <iconView>
   <layers image="icon/dip_icon.svg" >
    <layer layerId="icon" />
   </layers>
  </iconView>
  <breadboardView>
   <layers image="breadboard/generic_sip_${pins}_${mils}mil_bread.svg" >
    <layer layerId="breadboard" />
   </layers>
  </breadboardView>
  <schematicView>
   <layers image="schematic/generic_sip_${pins}_${mils}mil_schem.svg" >
    <layer layerId="schematic" />
   </layers>
  </schematicView>
  <pcbView>
   <layers image="pcb/jumper_${pins}_100mil_pcb.svg" >
    <layer layerId="silkscreen" />
    <layer layerId="copper0" />
   </layers>
  </pcbView>
 </views>
 <connectors>
#for $pin in range(int($pins))
  #set $pindex = $pin + 1
  <connector type="male" id="connector$pin" name="pin$pindex" >
   <description>pin $pindex</description>
   <views>
    <breadboardView>
     <p svgId="connector${pin}pin" layer="breadboard" terminalId="connector${pin}terminal" />
    </breadboardView>
    <schematicView>
     <p svgId="connector${pin}pin" layer="schematic" terminalId="connector${pin}terminal" />
    </schematicView>
    <pcbView>
     <p svgId="connector${pin}pin" layer="copper0" />
    </pcbView>
   </views>
  </connector>
#end for
 </connectors>
</module>
