Posted 07 February 2012 - 03:07 AM
LED COUNTING DISPLAY
Big thanks to Fuzzypurp & Espen for helping me with my code.
The most advanced thing I've done to date so as novice as it may seem, I'm proud :P/>/>
[media]http://youtu.be/9RmNZQRSK3Y[/media]
images (before making it look nice for the video):
Spoiler
[left]The (long winded) code:[/left]
[left]
Spoiler
print("Counter v1.0 Activated")
--1
mix = colors.combine(colors.orange, colors.green)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--2
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.pink, colors.orange, colors.brown, colors.red, colors.white)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--3
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.pink, colors.orange, colors.brown, colors.green, colors.white)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--4
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.purple, colors.brown, colors.orange, colors.green)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--5
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.pink, colors.purple, colors.brown, colors.green, colors.white)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--6
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.purple, colors.brown, colors.pink, colors.green, colors.red, colors.white)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--7
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.pink, colors.orange, colors.green)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--8
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.purple, colors.brown, colors.orange, colors.green, colors.pink, colors.red, colors.white)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--9
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.purple, colors.brown, colors.orange, colors.green, colors.pink, colors.white)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--0
redstone.setBundledOutput("back", 0)
mix = colors.combine(colors.purple, colors.orange, colors.green, colors.pink, colors.red, colors.white)
redstone.setBundledOutput("back", mix, true)
sleep(4)
--reset
redstone.setBundledOutput("back", 0)