Hello Everyone. I have just recently started learning C# and .NETMF to use as an industrial control project for work. We are going to have a series of digital inputs activate a sequence of controlled events based on analog inputs and HMI interface through the T43 display.
To start, I cannot figure out how to just print in the debug window the status of a button press using the breadboard module.
I know it is very basic…however, I cannot figure out how to monitor the status of a button press into the breadboard module. Current code is attached.
Any help is appreciated. Thank you, Jordan
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.Presentation.Shapes;
using Microsoft.SPOT.Touch;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
using Microsoft.SPOT.Hardware;
namespace GadgeteerApp6
{
public partial class Program
{
private object Status;
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
Debug.Print("Program Started");
breadBoardX1.CreateDigitalInput(GT.Socket.Pin.Four, GT.SocketInterfaces.GlitchFilterMode.On, GT.SocketInterfaces.ResistorMode.Disabled);
breadBoardX1.CreateDigitalOutput(GT.Socket.Pin.Three, true);
}
}
}