public static void Main() { Debug.Print("mem: " + Debug.GC(false)); I2CDevice i2cDevice = new I2CDevice(null); Ds1307 ds1307 = new Ds1307(200); ds1307.Test(i2cDevice); Thread.Sleep(1000); OutputPort uLcd144_reset = new OutputPort(Pins.GPIO_PIN_D13, true); ULcd144 uLcd144 = new ULcd144(); uLcd144.Test(uLcd144_reset); Thread.Sleep(1000); _serialBridge = new SerialBridge(Serial.COM1); _serialBridge.ReadLine += new ThreadedSerialDevice.ReadHandler(_serialBridge_ReadLine); while (true) { Thread.Sleep(100); } }
public Nexus() { _serLcd = new SerLCD(); _serLcd.Write("hello", "world"); _serialBridge = new SerialBridge(Serial.COM2); _serialBridge.ReadLine += new ThreadedSerialDevice.ReadHandler(_serialBridge_ReadLine); // _blinkMs = new BlinkMArray(); // _mp3Trigger = new Mp3Trigger(); // _mp3Trigger.SetVolume(64); //_emic2 = new Emic2(); //_emic2.Say("hello"); _button_Red = new ControlButton(Pins.GPIO_PIN_D5, "Red", 0, this); _button_Green = new ControlButton(Pins.GPIO_PIN_D6, "Green", 80, this); _button_Blue = new ControlButton(Pins.GPIO_PIN_D9, "Blue", 160, this); _button_Yellow = new ControlButton(Pins.GPIO_PIN_D10, "Yellow", 42, this); }