|
Frame 1 Behavior Script on exitFrame me
put EZIOPort.a2d(1) -- message A/D digital port value 0-255, 1-8 ports --put EZIOPort.readline(1) --put EZIOPort.readPort
-- there is currently no support for the PWM feature for the ezio extra, -- use the dirrectcomm extra www.directextras.com/index.htm
go to the frame end
Start/Stop Movie Script on startmovie global EZIOPort set EZIOPort = new (Xtra "EZIOXtra") -- www.artic.edu/~bchang/ezio/ -- modem port ".AIn", ".AOut" -- printer port ".BIn", ".BOut" -- USB Mac with KeySpan USB-Serial Converter -- modem port ".keyU2X02in",".keyU2X02out" -- printer port ".BIn", ".BOut" set err = initSerial (EZIOPort,".AIn", ".AOut") --modem put err -- 0 no error, port initialized OK -- -97 port is still in use by another application. -- Make sure nothing else like Appletalk or a Wacom tablet is using the port. -- If it still doesn't work, restart. end
on stopMovie global EZIOPort set EZIOPort = 0 end
--Before building your projector, open the movie in director. --go to Modify->Movie->Xtras. A dialog box will pop up with an xtra list --that will be included in the projector. Click "Add", then select "EZIOXtra" --from the list. Make sure the "Include Xtra in Projector" box is checked. --Save the movie, then build the projector. the Xtra will be included.
Download this sample in Director and the EZIO extra. |