public void StartCleaning(CrestronDevice device) { //parent.Debug("StartCleaning"); if (cleanCurrentMinutes < 1) { cleanCurrentMinutes = cleanTotalMinutes; parent.SendDigital(device, DIG_SUB_CONFIRM, false); parent.SendDigital(device, DIG_SUB_CLEAN_COUNT, true); parent.SendAnalogue(device, ANA_CLEAN_TIME, cleanCurrentMinutes); while (cleanCurrentMinutes > 0) { Thread.Sleep(1000); cleanCurrentMinutes--; parent.SendAnalogue(device, ANA_CLEAN_TIME, cleanCurrentMinutes); } parent.SendDigital(device, DIG_SUB_CLEAN_COUNT, false); } }
private void numericUpDown1_ValueChanged(object sender, EventArgs e) { //Crestron.SendAnaloguePercent(Crestron.GetCrestronDevice(0x03), 1, (byte)numericUpDown1.Value); Crestron.SendAnalogue(Crestron.GetCrestronDevice(0x03), 1, (byte)numericUpDown1.Value); }