In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: forked from: 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
/**
 * Copyright shihu ( http://wonderfl.net/user/shihu )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/pbXM
 */

// forked from kotobuki's forked from: Arduino/Digital/Blink: physical x wonderfl way
// 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.SAW );
        }
    }
}