Subversion Repositories group.electronics

Rev

Rev 161 | Rev 163 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 161 Rev 162
Line 42... Line 42...
42
 
42
 
43
        public mcp2221() {
43
        public mcp2221() {
44
            speed = 400000;
44
            speed = 400000;
45
            idx = 0;
45
            idx = 0;
46
 
46
 
47
            refresh.Interval = 500;
47
            refresh.Interval = 20;
48
            refresh.AutoReset = true;
48
            refresh.AutoReset = true;
49
            refresh.Elapsed += refresh_Elapsed;
49
            refresh.Elapsed += refresh_Elapsed;
50
            refresh.Enabled = false;
50
            refresh.Enabled = false;
51
 
51
 
52
            usbi2c.Settings.GetConnectionStatus();
52
            usbi2c.Settings.GetConnectionStatus();
Line 57... Line 57...
57
                usbi2c.Settings.GetConnectionStatus();
57
                usbi2c.Settings.GetConnectionStatus();
58
                string usbDescriptor = this.usbi2c.Settings.GetUsbStringDescriptor();
58
                string usbDescriptor = this.usbi2c.Settings.GetUsbStringDescriptor();
59
                if (usbDescriptor == "AHCP/FSCP Panel") {
59
                if (usbDescriptor == "AHCP/FSCP Panel") {
60
                    this.hasAHFS = true;
60
                    this.hasAHFS = true;
61
                    panels.Add(new Panel_AHFS(this));
61
                    panels.Add(new Panel_AHFS(this));
-
 
62
                    Console.WriteLine("Found AHCP/FSCP Panel");
62
                } else if (usbDescriptor == "AAP Panel") {
63
                } else if (usbDescriptor == "AAP Panel") {
63
                    this.hasAAP = true;
64
                    this.hasAAP = true;
64
                    panels.Add(new Panel_AAP(this));
65
                    panels.Add(new Panel_AAP(this));
-
 
66
                    Console.WriteLine("Found AAP Panel");
-
 
67
                } else if (usbDescriptor == "Multi-Panel Combo") {
-
 
68
                    panels.Add(new NitMultiPanel(this));
-
 
69
                    Console.WriteLine("Found Multi-Panel Combo");
65
                }
70
                }
66
            }
71
            }
67
 
72
 
68
            
73
            
69
        }
74
        }