summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/pinoutikz/pinoutikz.sty
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/pinoutikz/pinoutikz.sty')
-rw-r--r--graphics/pgf/contrib/pinoutikz/pinoutikz.sty48
1 files changed, 34 insertions, 14 deletions
diff --git a/graphics/pgf/contrib/pinoutikz/pinoutikz.sty b/graphics/pgf/contrib/pinoutikz/pinoutikz.sty
index 0aafc9e188..a672e0dd7f 100644
--- a/graphics/pgf/contrib/pinoutikz/pinoutikz.sty
+++ b/graphics/pgf/contrib/pinoutikz/pinoutikz.sty
@@ -38,8 +38,8 @@
\usetikzlibrary{shapes.misc, shapes.geometric}
\def\pinoutikzname {pinouTikz}
-\def\pinoutikzversion {1.1.1}
-\def\pinoutikzdate {2019/11/25}
+\def\pinoutikzversion {1.1.2}
+\def\pinoutikzdate {2020/07/27}
%% Formatt a pin name
\def\FormatPinLabel#1{
@@ -116,12 +116,7 @@
\end{scope}
}
-%% PDIP package diagram
-%% @param#1: offset
-%% @param#2: number of pins (divisible by 2)
-%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
-\def\PDIP(#1)#2{%
- \begin{tikzpicture}
+\def\pctPDIP(#1)#2{%
\begin{scope}[shift={(0,0)}]
\sffamily
\textsf{%
@@ -149,6 +144,15 @@
}
}
\end{scope}
+}
+
+%% PDIP package diagram
+%% @param#1: offset
+%% @param#2: number of pins (divisible by 2)
+%% @param#3: comma separated definitions list for every pin - every pin definition should be enclosed in quotation marks ("")
+\def\PDIP(#1)#2{%
+ \begin{tikzpicture}
+ \pctPDIP(#1){#2}
\end{tikzpicture}
}
@@ -199,27 +203,43 @@
}
}
-%% PLCC package diagram
+%% PLCC package picture
%% @param#1: offset
%% @param#2: number of pins (divisible by 2)
%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
-\def\PLCC(#1)#2{%
- \begin{tikzpicture}
+\def\pctPLCC(#1)#2{%
\begin{scope}[shift={(0,0)}]
\GENFOUREDGE(#1){#2}{PLCC}{round(#1*.125)}
\end{scope}
- \end{tikzpicture}
}
-%% TQFP package diagram
+
+%% PLCC package diagram
%% @param#1: offset
%% @param#2: number of pins (divisible by 2)
%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
-\def\TQFP(#1)#2{%
+\def\PLCC(#1)#2{%
\begin{tikzpicture}
+ \pctPLCC(#1){#2}
+ \end{tikzpicture}
+}
+
+%% TQFP package picture
+%% @param#1: offset
+%% @param#2: number of pins (divisible by 2)
+%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
+\def\pctTQFP(#1)#2{%
\begin{scope}[shift={(0,0)}]
\GENFOUREDGE(#1){#2}{TQFP}{0}
\end{scope}
+}
+%% TQFP package diagram
+%% @param#1: offset
+%% @param#2: number of pins (divisible by 2)
+%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
+\def\TQFP(#1)#2{%
+ \begin{tikzpicture}
+ \pctTQFP(#1){#2}
\end{tikzpicture}
}