Meredith’s first .Net MF application

Meredith who is 8 wrote her first .Net MF program

public class Program

{

public static void Main()

{

OutputPort led = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.Di9, ledState);

AnalogIn volume = new AnalogIn((AnalogIn.Pin)FEZ_Pin.AnalogIn.An1);

while (true)

{

Debug.Print("Volume = " + volume.Read().ToString());

Thread.Sleep(volume.Read());

led.Write(!led.Read());

}

}
She wants to hack the robot code next, small steps

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s