summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/examples/Timer.m4
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-02-18 03:02:28 +0000
committerNorbert Preining <norbert@preining.info>2020-02-18 03:02:28 +0000
commitbb5325dae4202b519b7210a338651301e048998d (patch)
tree4caa8d8c62275cb193df85d10f8f0e10bab587b3 /graphics/circuit_macros/examples/Timer.m4
parent67394fd2cfa6167f7e2316237629bec93851c1fb (diff)
CTAN sync 202002180302
Diffstat (limited to 'graphics/circuit_macros/examples/Timer.m4')
-rw-r--r--graphics/circuit_macros/examples/Timer.m414
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/circuit_macros/examples/Timer.m4 b/graphics/circuit_macros/examples/Timer.m4
index 65fe897847..a5db32c800 100644
--- a/graphics/circuit_macros/examples/Timer.m4
+++ b/graphics/circuit_macros/examples/Timer.m4
@@ -16,15 +16,15 @@ define(`ic555',`[Chip: box ht boxwid wid boxwid "555"
define(`elen_',`linewid')
Vs: dot
down_
- variable(`resistor(,E); llabel(,1`\,'\hbox{M})')
- resistor(,E); llabel(,100`\,'\hbox{k})
- capacitor(,E); llabel(220`\,'\mu)
+ variable(`resistor(,E); llabel(,\SI{1}{M})')
+ resistor(,E); llabel(,\SI{100}{\kilo{}})
+ capacitor(,E); llabel(\SI{220}{\micro{}})
Zero: dot
dot(at Vs+(elen_*4/3,0))
- resistor(,E); llabel(,33`\,'\hbox{k})
+ resistor(,E); llabel(,\SI{33}{\kilo{}})
line to (Here,Zero) chop 0 chop elen_
-C2: capacitor; llabel(0.1`\,'\mu)
+C2: capacitor; llabel(\SI{0.1}{\micro{}})
dot
IC1: ic555 with .P7 at C2.start + (elen_,0)
@@ -40,11 +40,11 @@ R: dot
B: buzzer(,,C) with .In3 at Here
line from B.In1 to (R,B.In1)
reversed(`diode',to (Here,Vs),LE); "red" at last line.c+(elen_/2,0)
- resistor(down_ elen_ from R,E); llabel(,470)
+ resistor(down_ elen_ from R,E); llabel(,\num{470})
diode(to (Here,Zero),LE); {"green" at last line.c+(elen_*2/3,0)}
line to Zero chop 0 chop -elen_
line up_ (Vs.y-Here.y)/3
- battery(up_ (Vs.y-Here.y)/3); rlabel(,,9`\,'\hbox{V})
+ battery(up_ (Vs.y-Here.y)/3); rlabel(,,\SI{9}{V})
switch(to (Here,Vs),,D)
line to (R,Vs)