summaryrefslogtreecommitdiff
path: root/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test.rb')
-rwxr-xr-xtest.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test.rb b/test.rb
index d6cfbe2..e7f8b49 100755
--- a/test.rb
+++ b/test.rb
@@ -7,18 +7,18 @@ nl = Lace::Netlist.new do
7 vcc = net("vcc") 7 vcc = net("vcc")
8 gnd = net("gnd") 8 gnd = net("gnd")
9 9
10 stock_ic("inverter", "CD74HC04") do | ic | 10 define_singleton_method(:inverter, stock_ic("inverter", "CD74HC04") do | ic |
11 vcc - ic[14] - c("100nF") - ic[7] - gnd 11 vcc - ic[14] - c("100nF") - ic[7] - gnd
12 end 12 end)
13 13
14 vcc - led(220) - gnd 14 vcc - led(220) - gnd
15 15
16 vcc - btn - led(220, "green") - gnd 16 vcc - btn - led(220, "green") - gnd
17 vcc - btn("orange") - ic("inverter") - led(220, "white") - gnd 17 vcc - btn("orange") - inverter - led(220, "white") - gnd
18 18
19 x = vcc - btn("white") 19 x = vcc - btn("white")
20 x - net("x") - led(220, "amber") - gnd 20 x - net("x") - led(220, "amber") - gnd
21 x - ic("inverter") - net("xbar") - led(220, "blue") - gnd 21 x - inverter - net("xbar") - led(220, "blue") - gnd
22 x - probe - gnd 22 x - probe - gnd
23end 23end
24 24