← Commit history

sn74hc595brwnr: .lbr and symbol viewer from adom-lbr 2.47.10 (primes, overbars)

Ray ·b2b84b6227 · ·parent 43dc64f
2 files changed +18−6
sn74hc595brwnr.lbr+16−5
@@ -50,7 +50,7 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description></description>+<description>Texas Instruments Shift Registers, X1-QFN-16-EP(2.5x2.5). Pinout cross-checked by two models against the datasheet</description> <packages> <package name="Texas_Instruments_SN74_9f8751">   <description>17 pads, 2.9 x 2.9 mm. Generated from the Texas Instruments datasheet land pattern (family D9f8751, spec 9f87516036)</description>@@ -82,6 +82,7 @@ </packages> <symbols> <symbol name="SN74HC595BRWNR">+  <description>Texas Instruments Shift Registers, X1-QFN-16-EP(2.5x2.5). Pinout cross-checked by two models against the datasheet</description>   <wire x1="-12.7" y1="12.7" x2="12.7" y2="12.7" width="0.254" layer="94"/>   <wire x1="12.7" y1="12.7" x2="12.7" y2="-12.7" width="0.254" layer="94"/>   <wire x1="12.7" y1="-12.7" x2="-12.7" y2="-12.7" width="0.254" layer="94"/>@@ -96,7 +97,7 @@   <pin name="QG" x="-17.78" y="-2.54" length="middle" direction="out"/>   <pin name="QH" x="-17.78" y="-5.08" length="middle" direction="out"/>   <pin name="GND" x="-17.78" y="-7.62" length="middle" direction="pwr"/>-  <pin name="QH@2" x="-17.78" y="-10.16" length="middle" direction="out"/>+  <pin name="QH_P" x="-17.78" y="-10.16" length="middle" direction="out"/>   <pin name="EP" x="17.78" y="7.62" length="middle" direction="pas" rot="R180"/>   <pin name="VCC" x="17.78" y="5.08" length="middle" direction="pwr" rot="R180"/>   <pin name="QA" x="17.78" y="2.54" length="middle" direction="out" rot="R180"/>@@ -109,7 +110,7 @@ </symbols> <devicesets> <deviceset name="SN74HC595BRWNR" prefix="U">-  <description></description>+  <description>Texas Instruments Shift Registers, X1-QFN-16-EP(2.5x2.5). Pinout cross-checked by two models against the datasheet</description>   <gates>     <gate name="G$1" symbol="SN74HC595BRWNR" x="0" y="0"/>   </gates>@@ -124,7 +125,7 @@         <connect gate="G$1" pin="QG" pad="6"/>         <connect gate="G$1" pin="QH" pad="7"/>         <connect gate="G$1" pin="GND" pad="8"/>-        <connect gate="G$1" pin="QH@2" pad="9"/>+        <connect gate="G$1" pin="QH_P" pad="9"/>         <connect gate="G$1" pin="EP" pad="17"/>         <connect gate="G$1" pin="VCC" pad="16"/>         <connect gate="G$1" pin="QA" pad="15"/>@@ -134,7 +135,17 @@         <connect gate="G$1" pin="SRCLK" pad="11"/>         <connect gate="G$1" pin="SRCLR" pad="10"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="SN74HC595BRWNR" constant="no"/>+          <attribute name="MANUFACTURER" value="Texas Instruments" constant="no"/>+          <attribute name="DATASHEET" value="https://www.ti.com/lit/ds/symlink/sn74hc595b.pdf" constant="no"/>+          <attribute name="ADOM_WIKI" value="https://wiki.adom.inc/adom/sn74hc595brwnr" constant="no"/>+          <attribute name="MOUSER_PN" value="595-SN74HC595BRWNR" constant="no"/>+          <attribute name="DIGIKEY_PN" value="296-44070-2-ND" constant="no"/>+          <attribute name="LCSC_PN" value="C2682068" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
viewers/symbol.html+2−1
@@ -44,7 +44,8 @@ function els(n){return [].slice.call(document.querySelectorAll('[data-num="'+n+' function clearHi(){[].slice.call(document.querySelectorAll('.hi')).forEach(function(e){e.classList.remove('hi');});} function hi(n){els(n).forEach(function(e){e.classList.add('hi');});} function post(n){try{parent.postMessage({type:'lbr-hover',pin:n===null?null:String(n),mpn:MPN},'*');}catch(_){}}-function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';tip.querySelector('.tn').textContent=n+'  '+(p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';}+function ovName(el,pre,nm){el.textContent=pre;var r=nm,i;while((i=r.indexOf('~{'))>=0){el.appendChild(document.createTextNode(r.slice(0,i)));var a=r.slice(i+2),j=a.indexOf('}'),s=document.createElement('span');s.style.textDecoration='overline';s.textContent=j<0?a:a.slice(0,j);el.appendChild(s);r=j<0?'':a.slice(j+1);}el.appendChild(document.createTextNode(r));}+function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';ovName(tip.querySelector('.tn'),n+'  ',p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';} [].slice.call(document.querySelectorAll('.pingroup,.pad')).forEach(function(g){   var n=g.getAttribute('data-num');   g.addEventListener('mouseenter',function(e){clearHi();hi(n);post(n);showTip(n,e.clientX,e.clientY);});