Subversion Repositories group.electronics

Rev

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

Rev 183 Rev 184
Line 1... Line 1...
1
using System;
1
using System;
2
using System.Collections.Generic;
2
using System.Collections.Generic;
-
 
3
using System.Drawing;
3
using System.Linq;
4
using System.Linq;
4
using System.Text;
5
using System.Text;
5
using System.Threading.Tasks;
6
using System.Threading.Tasks;
6
using WindowsInput.Native;
7
using WindowsInput.Native;
7
 
8
 
Line 80... Line 81...
80
            this.addLed(new Led(0, 11, 0x10da, 0x0080, 7));     // R_AILERON_EMER_DISENGAGE
81
            this.addLed(new Led(0, 11, 0x10da, 0x0080, 7));     // R_AILERON_EMER_DISENGAGE
81
            this.addLed(new Led(0, 10, 0x10da, 0x0100, 8));     // L_ELEVATOR_EMER_DISENGAGE 
82
            this.addLed(new Led(0, 10, 0x10da, 0x0100, 8));     // L_ELEVATOR_EMER_DISENGAGE 
82
            this.addLed(new Led(0, 9, 0x10da, 0x0200, 9));     // R_ELEVATOR_EMER_DISENGAGE 
83
            this.addLed(new Led(0, 9, 0x10da, 0x0200, 9));     // R_ELEVATOR_EMER_DISENGAGE 
83
            this.addLed(new Led(0, 8, 0x1026, 0x0400, 10));    // TAKE_OFF_TRIM
84
            this.addLed(new Led(0, 8, 0x1026, 0x0400, 10));    // TAKE_OFF_TRIM
84
 
85
 
-
 
86
            
-
 
87
 
-
 
88
            //Bitmap flap = new Bitmap(nitdcscore.Properties.Resources.flap_bg);
-
 
89
            BitImage bi = new BitImage(new Bitmap(nitdcscore.Properties.Resources.flap_bg));
-
 
90
            
85
            oled = new Oled(Oled.EXTERNALVCC, 0x47, mcp);
91
            oled = new Oled(Oled.SWITCHCAPVCC, 0x3d, mcp);
86
            oled.init();
92
            oled.init();
-
 
93
            oled.buffer = bi.toByteArray();
-
 
94
            oled.display();
87
 
95
 
88
            // Register the flap gauge position address
96
            // Register the flap gauge position address
89
            UInt16 din; // Addr 10A0, Mask FFFF, Max Val FFFF, Shift 0
97
            UInt16 din; // Addr 10A0, Mask FFFF, Max Val FFFF, Shift 0
90
            if (!Globals.BiosOutput.TryGetValue(0x10A0, out din)) {
98
            if (!Globals.BiosOutput.TryGetValue(0x10A0, out din)) {
91
                Globals.BiosOutput.Add(0x10A0, 0x0000);
99
                Globals.BiosOutput.Add(0x10A0, 0x0000);