Example #1
0
        public void UpdateScreen()
        {
            //keyLogTextBox.Text = keypad.KeyLog;
            if (Calculator is Ti84PlusCSe)
            {
                ColorLcd lcd = (Calculator as Ti84PlusCSe).Lcd;
                for (int y = 0; y < lcd.Height; y++)
                {
                    for (int x = 0; x < lcd.Width; x++)
                    {
                        unchecked
                        {
                            ScreenImage.SetPixel(x, y, Color.FromArgb((int)((uint)0xFF000000 | (uint)lcd[x, y])));

                            /*if (((int)(Calculator.Cpu.Clock.WallTime * 10) & 1) != 0)
                             *  ScreenImage.SetPixel(x, y, (lcd.Data[x, y] != 0 ? Color.Blue : Color.Red));
                             * else
                             *  ScreenImage.SetPixel(x, y, (lcd.Data[x, y] != 0 ? Color.Purple : Color.Pink));*/
                        }
                    }
                }
            }
            screen.Image = ScreenImage;
            screen.Refresh();
        }
Example #2
0
 public ColorLcdDebug(Ti8xCalculator master)
 {
     InitializeComponent();
     Master = master;
     Lcd    = ((Ti84PlusCSe)(Master.Calculator)).Lcd;
     //Master.ExecutionFinished += Calculator_ExecutionFinished;
     Master.UpdateData       += Calculator_ExecutionFinished;
     traceCountUpDown.Minimum = 1;
     traceCountUpDown.Maximum = ColorLcd.LogSize;
     RefreshData();
 }