using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;
namespace OJNETDUINO
{
public class Program
{
//Arrays are groups of variables
static AnalogInput[] ai = new AnalogInput[6];
public static void Main()
{
ai[0] = new AnalogInput(Cpu.AnalogChannel.ANALOG_0);
ai[1] = new AnalogInput(Cpu.AnalogChannel.ANALOG_1);
ai[2] = new AnalogInput(Cpu.AnalogChannel.ANALOG_2);
ai[3] = new AnalogInput(Cpu.AnalogChannel.ANALOG_3);
ai[4] = new AnalogInput(Cpu.AnalogChannel.ANALOG_4);
ai[5] = new AnalogInput(Cpu.AnalogChannel.ANALOG_5);
double Input = 0;
while (true)
{
//Read the raw sensor value
for (int a = 0; a < 6; a++)
{
Input = ai[a].Read();
Debug.Print(Input.ToString());
}
Debug.Print("");
Thread.Sleep(500);
}
}
}
}[/mw_shl_code]