Subversion Repositories group.electronics

Rev

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

Rev 184 Rev 185
Line 88... Line 88...
88
            //Bitmap flap = new Bitmap(nitdcscore.Properties.Resources.flap_bg);
88
            //Bitmap flap = new Bitmap(nitdcscore.Properties.Resources.flap_bg);
89
            BitImage bi = new BitImage(new Bitmap(nitdcscore.Properties.Resources.flap_bg));
89
            BitImage bi = new BitImage(new Bitmap(nitdcscore.Properties.Resources.flap_bg));
90
            
90
            
91
            oled = new Oled(Oled.SWITCHCAPVCC, 0x3d, mcp);
91
            oled = new Oled(Oled.SWITCHCAPVCC, 0x3d, mcp);
92
            oled.init();
92
            oled.init();
93
            oled.buffer = bi.toByteArray();
93
            //oled.buffer = bi.toByteArray();
94
            oled.display();
94
            oled.display();
95
 
95
 
96
            // Register the flap gauge position address
96
            // Register the flap gauge position address
97
            UInt16 din; // Addr 10A0, Mask FFFF, Max Val FFFF, Shift 0
97
            UInt16 din; // Addr 10A0, Mask FFFF, Max Val FFFF, Shift 0
98
            if (!Globals.BiosOutput.TryGetValue(0x10A0, out din)) {
98
            if (!Globals.BiosOutput.TryGetValue(0x10A0, out din)) {
99
                Globals.BiosOutput.Add(0x10A0, 0x0000);
99
                Globals.BiosOutput.Add(0x10A0, 0x0000);
100
            }
100
            }
101
 
101
 
102
            data.axis[0].mapsize = 0xFFFF;
102
            data.axis[0].mapsize = 0xFFFF;
103
            data.axis[0].thres = 3;
103
            data.axis[0].thres = 13;
104
 
104
 
105
            this.Refresh();
105
            this.Refresh();
106
            data.prev = data.buttons;
106
            data.prev = data.buttons;
107
            data.axis[0].prev = data.axis[0].value;
107
            data.axis[0].prev = data.axis[0].value;
108
            data.changed = false;
108
            data.changed = false;