Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | # Basic electronic component data definitions. |
2 | |||
3 | ########## Basic definitions. ############# |
||
4 | |||
5 | comp_all="acsrc,and,arrow,Arrow,bat,buf,cap, |
||
6 | chas,close,coil,diode,Diode, |
||
7 | gnd,iarrow,iArrow,inv,isrc,lamp,meter,nand,nor,npn,npn2, |
||
8 | open,or,pnp,pnp2,res,res2,src, |
||
9 | term,term2,wire,xnor,xor,zener,Zener" |
||
10 | |||
11 | comp_notext="wire num color" |
||
12 | |||
13 | comp_norotate="acsrc meter num" |
||
14 | |||
15 | ############### Subroutines ################## |
||
16 | |||
17 | comp_transistor="lines black,-1,0,-0.9,0,-0.1,0.8,0.1,0.8,0.9,0,1,0 |
||
18 | line 0,1,0,0.8,black |
||
19 | line -0.6,0.8,0.6,0.8,black" |
||
20 | comp_transistor2="lines black,-1,0,-0.9,0,-0.1,-0.8,0.1,-0.8,0.9,0,1,0 |
||
21 | line 0,-1,0,-0.8,black |
||
22 | line -0.6,-0.8,0.6,-0.8,black" |
||
23 | |||
24 | ######## Start of component drawing data. ###########3 |
||
25 | |||
26 | comp_acsrc="ellipse 0,0,2,2,black |
||
27 | curve black,-0.6+1.2*t,0.4*sin(2*pi*t)" |
||
28 | |||
29 | comp_and="lines black,0,0.7,-1,0.7,-1,-0.7,0,-0.7 |
||
30 | plot black,0.65*sin(pi*t),0.7*cos(pi*t) |
||
31 | line 0.65,0,1,0,black" |
||
32 | |||
33 | comp_arrow="triangle -1,0.4,-1,-0.4,-0.1,0,black" |
||
34 | |||
35 | comp_Arrow="ftriangle -1,0.4,-1,-0.4,-0.1,0,black" |
||
36 | |||
37 | comp_bat="parallel -1,0,-0.6,0,1.6,0,2,black |
||
38 | parallel 0.6,-0.7,0.6,0.7,-0.8,0,2,black |
||
39 | parallel 0.2,-0.3,0.2,0.3,-0.8,0,2,black" |
||
40 | |||
41 | comp_buf="triangle -0.55,0.5,-0.55,-0.5,0.55,0,black |
||
42 | line -1,0,-0.55,0,black |
||
43 | line 0.55,0,1,0,black" |
||
44 | |||
45 | comp_cap="parallel -1,0,-0.2,0,1.2,0,2,black |
||
46 | parallel -0.2,-0.7,-0.2,0.7,0.4,0,2,black" |
||
47 | |||
48 | comp_chas="line 1,0,0.6,0,black |
||
49 | triangle 0.6,-0.6,0.6,0.6,0.1,0,black" |
||
50 | |||
51 | comp_close="parallel -1,0,-0.7,0,1.7,0,2,black |
||
52 | ellipse -0.5,0,0.4,0.4,black |
||
53 | ellipse 0.5,0,0.4,0.4,black |
||
54 | line -0.7,0.2,0.7,0.2,black" |
||
55 | |||
56 | comp_coil="parallel -1,0,-0.875,0,1.875,0,2,black |
||
57 | curve black,-0.15*cos(7*pi*t)+1.44*t-0.72,0.3*sin(7*pi*t)" |
||
58 | |||
59 | comp_color="!nosubst frect -1,-1,1,1,$slib_text" |
||
60 | |||
61 | comp_diode="parallel -1,0,-0.3,0,1.3,0,2,black |
||
62 | line 0.3,-0.5,0.3,0.5,black |
||
63 | triangle 0.3,0,-0.3,0.5,-0.3,-0.5,black" |
||
64 | |||
65 | comp_Diode="parallel -1,0,-0.3,0,1.3,0,2,black |
||
66 | line 0.3,-0.5,0.3,0.5,black |
||
67 | ftriangle 0.3,0,-0.3,0.5,-0.3,-0.5,black" |
||
68 | |||
69 | comp_gnd="line 1,0,0.6,0,black |
||
70 | line 0.6,-0.7,0.6,0.7,black |
||
71 | line 0.35,-0.4,0.35,0.4,black |
||
72 | line 0.1,-0.1,0.1,0.1,black" |
||
73 | |||
74 | comp_iarrow="line -1,0,1,0,black |
||
75 | lines black,-0.4,0.25,0.4,0,-0.4,-0.25" |
||
76 | |||
77 | comp_iArrow="line -1,0,1,0,black |
||
78 | ftriangle -0.4,0.25,0.4,0,-0.4,-0.25,black" |
||
79 | |||
80 | comp_inv="triangle -0.55,0.5,-0.55,-0.5,0.55,0,black |
||
81 | line -1,0,-0.55,0,black |
||
82 | ellipse 0.75,0,0.4,0.4,black |
||
83 | line 0.95,0,1,0,black" |
||
84 | |||
85 | comp_isrc="ellipse 0,0,2,2,black |
||
86 | arrow -0.6,0,0.6,0,8,black" |
||
87 | |||
88 | comp_lamp="ellipse 0,0,1.42,1.42,black |
||
89 | line -0.5,-0.5,0.5,0.5,black |
||
90 | line -0.5,0.5,0.5,-0.5,black |
||
91 | parallel -1,0,-0.71,0,1.71,0,2,black" |
||
92 | |||
93 | comp_meter="ellipse 0,0,2,2,black |
||
94 | line -0.8,-0.55,0.8,-0.55,black |
||
95 | arrow -0.1,-0.5,0.4,0.5,8,black" |
||
96 | |||
97 | comp_nand="lines black,0,0.7,-1,0.7,-1,-0.7,0,-0.7 |
||
98 | plot black,0.65*sin(pi*t),0.7*cos(pi*t) |
||
99 | ellipse 0.825,0,0.35,0.35,black" |
||
100 | |||
101 | comp_nor="curve black,-0.15*(2*t-1)^2-0.85,0.7-1.4*t |
||
102 | curve black,t*1.65-1,0.7-0.7*t^3 |
||
103 | curve black,t*1.65-1,-0.7+0.7*t^3 |
||
104 | ellipse 0.825,0,0.35,0.35,black" |
||
105 | |||
106 | comp_num="!nosubst text black,-0.15,0.3,large,$slib_i" |
||
107 | |||
108 | comp_npn="$comp_transistor |
||
109 | arrow -0.1,0.8,-0.9,0,8,black" |
||
110 | |||
111 | comp_npn2="$comp_transistor2 |
||
112 | arrow -0.1,-0.8,-0.9,0,8,black" |
||
113 | |||
114 | comp_open="parallel -1,0,-0.7,0,1.7,0,2,black |
||
115 | ellipse -0.5,0,0.4,0.4,black |
||
116 | ellipse 0.5,0,0.4,0.4,black |
||
117 | line -0.7,0.6,0.7,0.6,black" |
||
118 | |||
119 | comp_or="curve black,-0.15*(2*t-1)^2-0.85,0.7-1.4*t |
||
120 | curve black,t*1.65-1,0.7-0.7*t^3 |
||
121 | curve black,t*1.65-1,-0.7+0.7*t^3 |
||
122 | line 0.65,0,1,0,black" |
||
123 | |||
124 | comp_pnp="$comp_transistor |
||
125 | arrow 0.9,0,0.1,0.8,8,black" |
||
126 | |||
127 | comp_pnp2="$comp_transistor2 |
||
128 | arrow 0.9,0,0.1,-0.8,8,black" |
||
129 | |||
130 | comp_res="lines black,-1,0,-0.75,0,-0.625,-0.3,-0.375,0.3,-0.125,-0.3,0.125,0.3,0.375,-0.3,0.625,0.3,0.75,0,1,0" |
||
131 | |||
132 | comp_res2="parallel -1,0,-0.75,0,1.75,0,2,black |
||
133 | rectangle -0.75,-0.3,0.75,0.3,black" |
||
134 | |||
135 | comp_src="ellipse 0,0,2,2,black" |
||
136 | |||
137 | comp_term="line 0.5,0,1,0,black |
||
138 | ellipse 0.3,0,0.4,0.4,black" |
||
139 | |||
140 | comp_term2="ellipse -0.8,0,0.4,0.4,black |
||
141 | ellipse 0.8,0,0.4,0.4,black" |
||
142 | |||
143 | comp_wire="line -1,0,1,0,black" |
||
144 | |||
145 | comp_xnor="curve black,-0.15*(2*t-1)^2-0.85,0.7-1.4*t |
||
146 | curve black,-0.15*(2*t-1)^2-0.65,0.7-1.4*t |
||
147 | curve black,t*1.45-0.8,0.7-0.7*t^3 |
||
148 | curve black,t*1.45-0.8,-0.7+0.7*t^3 |
||
149 | ellipse 0.825,0,0.35,0.35,black" |
||
150 | |||
151 | comp_xor="curve black,-0.15*(2*t-1)^2-0.85,0.7-1.4*t |
||
152 | curve black,-0.15*(2*t-1)^2-0.65,0.7-1.4*t |
||
153 | curve black,t*1.45-0.8,0.7-0.7*t^3 |
||
154 | curve black,t*1.45-0.8,-0.7+0.7*t^3 |
||
155 | line 0.65,0,1,0,black" |
||
156 | |||
157 | comp_zener="parallel -1,0,-0.3,0,1.3,0,2,black |
||
158 | lines black,0.5,0.6,0.3,0.4,0.3,-0.4,0.1,-0.6 |
||
159 | triangle 0.3,0,-0.3,0.5,-0.3,-0.5,black" |
||
160 | |||
161 | comp_Zener="parallel -1,0,-0.3,0,1.3,0,2,black |
||
162 | lines black,0.5,0.6,0.3,0.4,0.3,-0.4,0.1,-0.6 |
||
163 | ftriangle 0.3,0,-0.3,0.5,-0.3,-0.5,black" |
||
164 | |||
165 | ############# End of definitions ################## |