-orb- Wire Mod Tut 24 Part 2
2,404 views since 2007-07-29
No video responses
1 text comments
(1 results)
Hi Orb love the tutorials.
Quick point though for yourself and anyone watching these...
In the expression gate when you have those multiple lines of if statements, you could have made it a lot shorter as the output variables only had 2 states 1 or 0 possible. for example
Timer == 0 -> L1 =0, L2 = 0, L3 = 0, L4 = 0, L5 = 0, L6= 0, L7 = 0;
Timer == 1 -> L1 =1 : 0;
Timer == 2 -> L2 =1 : 0;
Timer == 3 -> L3 =1 : 0;
Timer == 4 -> L4 =1 : 0;
Timer == 5 -> L5 =1 : 0;
Timer == 6 -> L6 =1 : 0;
Timer == 7 -> L7 =1 : 0;
the above will leave the variables for the outputs at 0, unless the timer is at the required value for triggering a 1.
the upside is when you need to add more steps you just insert more variables in the output column and then add one short line per.
for expression gate 2 you can do the same logic just with different syntax
if (Timer ==0) {L1=0, L2=0, L3=0, L4=0, L5=0, L6=06, L7=0}
if (Timer == 1) {L1=1} else {L1=0}
if (Timer == 2) {L2=1} else {L2=0}
etc...
Part 2 of the epically-proportioned wire mod tutorial in which I teach how to make a WireScribe reminiscent of Qjet's original, with the exception that you get to draw the designs yourself rather than using mathematically-created coordinates.
| Credits: | -orb- |
|---|---|
| URL: | http://www.wiremod.com/index.php?showtopic=351 |
| Tags: |

Digg this!



(1 results)