% -*- Mode:Text -*- 

 \newcommand{\pin}[3]{\tt#1&\sym#2&\sym#3\\}
% \newenvironment{pinout}[2]{
 \newenvironment{pinout}[3]{
    $$
    \begin{tabular}{|c|ll|}
        \multicolumn{3}{c}{#3 (#2 pins)}\\
        \hline type & \multicolumn{2}{|c|}{name}\\\hline\hline}%
{\hline\end{tabular}
    $$}
