Hello and thanks.
I am running this code:
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
namespace Trying_out_MaxO
{
public partial class Program
{
GT.Timer timer = new GT.Timer(200);
void ProgramStarted()
{
Debug.Print("Program Started");
maxO.NumBoards = 1;
timer.Tick += new GT.Timer.TickEventHandler(timer_Tick);
timer.Start();
}
void timer_Tick(GT.Timer timer)
{
//maxO.WritePin(1, 1, true);
byte[] arr = new byte[4];
arr = maxO.Read();
Debug.Print(arr[0].ToString()+arr[1].ToString()+arr[2].ToString());
}
}
}