public static void Main() { SensorPoller s = new SensorPoller(); LED l = new LED(FEZ_Pin.Digital.Di34); l.State = true; while (true) { s.Poll(); string broken = s.BrokenIRSensors; if (broken != "") Debug.Print("IR Sensors " + broken + " are borked!"); else Debug.Print("Working!"); Thread.Sleep(100); } }
public LEDGroup(FEZ_Pin.Digital purple, FEZ_Pin.Digital orange, FEZ_Pin.Digital green, FEZ_Pin.Digital white) { Purple = new LED(purple); //3.2-3.8V, 30mA => < 100 Ohms Orange = new LED(orange); //1.8-2.2V, 30mA => 37-50 ohms Green = new LED(green); //2.8-3V, 20mA => 15-25 ohms White = new LED(white); //3.5V, 20mA ???? }