// forked from kotobuki's Arduino/Digital/Blink: physical x wonderfl way // A "hello world!" example in physical x wonderfl way // Gainer I/O version // // Output: // * An external LED connected to the ain 0 pin // // Reference: // http://funnel.cc/Main/GettingStarted package { import flash.display.Sprite; import funnel.*; import funnel.gui.*; import funnel.ui.*; public class FlashTest extends Sprite { private var gainer:Gainer; public function FlashTest() { gainer = new Gainer(); // If you want to create a GUI to let users try // without hardware, set a GUI as follows var gui:GainerGUI = new GainerGUI(); addChild(gui); gainer.gui = gui; var led:LED = new LED(gainer.analogOutput(0)); led.blink(1000, 0, Osc.SQUARE); } } } forked from: Arduino/Digital/Blink: physical x wonderfl way