forked from: forked from: Arduino/Digital/Blink: physical x wonderfl way
forked from forked from: Arduino/Digital/Blink: physical x wonderfl way (diff: 2)
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
ActionScript3 source code
/**
* Copyright travis ( http://wonderfl.net/user/travis )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/wPzY
*/
// 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(3));
led.blink(1000, 0, Osc.SIN);
}
}
}