Hello,
Can someone tell me what's wrong with the next code?
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using ChipworkX.Hardware;
namespace MicroFrameworkFlashlight
{
public class Program
{
public static void Main()
{
Cpu.Pin lampPin = Processor.Pins.PC5;
Cpu.Pin switchPin = Processor.Pins.PA23;
OutputPort lampOutput = new OutputPort(lampPin, false);
InputPort switchInput = new InputPort(switchPin, false, Port.ResistorMode.PullDown);
while (true)
{
lampOutput.Write(switchInput.Read());
}
}
}
}
Greetings.