/[ThermoControl]/trunk/UnitTest.libThermoControl/Program.cs
ViewVC logotype

Contents of /trunk/UnitTest.libThermoControl/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 61 - (show annotations) (download)
Thu Aug 7 07:56:35 2014 UTC (5 years, 10 months ago) by william
File size: 1808 byte(s)

1 #define UNITTEST_ENABLE_PAUSE
2
3 using libThermoControl;
4 using System;
5 using System.Collections.Generic;
6 using System.Diagnostics;
7 using System.Text;
8
9 namespace UnitTest.libThermoControl
10 {
11 class Program
12 {
13 #region Pause
14 [Conditional("UNITTEST_ENABLE_PAUSE")]
15 static void Pause()
16 {
17 Console.WriteLine("Press any key to continue.");
18 Console.ReadKey(true);
19 }
20 #endregion
21
22 static void Main(string[] args)
23 {
24 //Controller c = new Controller();
25
26 ///* Example controller usage :
27 // c.SetFanOnlySpeed(FanOnlySpeedState.MEDIUM);
28 // c.SetFanMode(FanModeState.COOL);
29 // c.SetFanSpeed(FanSpeedState.AUTO);
30 // c.Reset();
31 // c.SetFanMode(FanModeState.COOL);
32 // c.SetFanMode(FanModeState.FANONLY);
33 // c.SetFanSpeed(FanSpeedState.MEDIUM);
34 // c.SetFanMode(FanModeState.FANONLY);
35 // c.Reset();
36 // */
37
38
39 //ThermistatControls.SendButton(ACControls.TEMP_UP);
40 //ThermistatControls.SendButton(ACControls.TEMP_UP);
41 //ThermistatControls.SendButton(ACControls.TEMP_UP);
42 //ThermistatControls.SendButton(ACControls.TEMP_UP);
43 //ThermistatControls.SendButton(ACControls.TEMP_UP);
44 //ThermistatControls.SendButton(ACControls.TEMP_UP);
45
46 //ThermistatControls.SendButton(ACControls.TIMER);
47 //ThermistatControls.SendButton(ACControls.TIMER_UP);
48 //ThermistatControls.SendButton(ACControls.TEMP_UP);
49
50 Controller c = new Controller();
51 c.Reset();
52 Pause();
53 }
54 }
55 }

  ViewVC Help
Powered by ViewVC 1.1.22