Director: Wire Cross Switch with EZIO

smallarrows.GIF

Download EZIO DirrComm Director Script and DirComm serial port extra

Purchase EZIO from: 
www.niq.com/ email for info   $156 with educational discount

Purchase Mac serial port from:
www.geethree.com/p_stealth.html   $50

 

ezio_wire_cross.jpg

Make sure there is a copy of the extra in the Director->Extras folder.

Connect two wires to the EZIO board as indicated.

Run the script and make sure this works.

OK now try something more advanced, see if you can make an object rotate everytime you cross the wires.   See Director Transforms tutorial.

Try hooking up a switch.   See
EZIO wiring


on exitFrame me
  --put readline(1)  --digital in port 1
  --put a2d(1)   --A/D port 1
 
  -- wires crossed
  if readline(1) = 0 then
   put
"Cross the wires 1" into field "tester"
   member
(member 1 of castLib 1).foreColor = 6
  end if
 
  -- wires not crossed
  if readline(1) = 1 then
   put
"You crossed the wires 1, good" into field "tester"
   member
(member 1 of castLib 1).foreColor = 7
  end if
 
 
  --put readcomm()
  go to the frame
end