Subversion Repositories group.electronics

Rev

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

Rev 181 Rev 183
Line 7... Line 7...
7
 
7
 
8
namespace nitdcscore {
8
namespace nitdcscore {
9
    public class NitAuxPanel : Panel {
9
    public class NitAuxPanel : Panel {
10
 
10
 
11
        private mcp23017[] chips;
11
        private mcp23017[] chips;
-
 
12
        private Oled oled;
12
        public UInt16 ledShadowA = 0x0000;
13
        public UInt16 ledShadowA = 0x0000;
13
 
14
 
14
        public NitAuxPanel(mcp2221 mcp) : base(mcp) {
15
        public NitAuxPanel(mcp2221 mcp) : base(mcp) {
15
            chips = new mcp23017[3] { new mcp23017(mcp, 0x20), new mcp23017(mcp, 0x21), new mcp23017(mcp, 0x22) };
16
            chips = new mcp23017[3] { new mcp23017(mcp, 0x20), new mcp23017(mcp, 0x21), new mcp23017(mcp, 0x22) };
16
 
17
 
Line 79... Line 80...
79
            this.addLed(new Led(0, 11, 0x10da, 0x0080, 7));     // R_AILERON_EMER_DISENGAGE
80
            this.addLed(new Led(0, 11, 0x10da, 0x0080, 7));     // R_AILERON_EMER_DISENGAGE
80
            this.addLed(new Led(0, 10, 0x10da, 0x0100, 8));     // L_ELEVATOR_EMER_DISENGAGE 
81
            this.addLed(new Led(0, 10, 0x10da, 0x0100, 8));     // L_ELEVATOR_EMER_DISENGAGE 
81
            this.addLed(new Led(0, 9, 0x10da, 0x0200, 9));     // R_ELEVATOR_EMER_DISENGAGE 
82
            this.addLed(new Led(0, 9, 0x10da, 0x0200, 9));     // R_ELEVATOR_EMER_DISENGAGE 
82
            this.addLed(new Led(0, 8, 0x1026, 0x0400, 10));    // TAKE_OFF_TRIM
83
            this.addLed(new Led(0, 8, 0x1026, 0x0400, 10));    // TAKE_OFF_TRIM
83
 
84
 
-
 
85
            oled = new Oled(Oled.EXTERNALVCC, 0x47, mcp);
-
 
86
            oled.init();
-
 
87
 
-
 
88
            // Register the flap gauge position address
-
 
89
            UInt16 din; // Addr 10A0, Mask FFFF, Max Val FFFF, Shift 0
-
 
90
            if (!Globals.BiosOutput.TryGetValue(0x10A0, out din)) {
-
 
91
                Globals.BiosOutput.Add(0x10A0, 0x0000);
-
 
92
            }
84
 
93
 
85
            data.axis[0].mapsize = 0xFFFF;
94
            data.axis[0].mapsize = 0xFFFF;
86
            data.axis[0].thres = 3;
95
            data.axis[0].thres = 3;
87
 
96
 
88
            this.Refresh();
97
            this.Refresh();