Пример #1
0
        public override void activate(string prevReceiver)
        {
            _nLinesShown = LCD_Manager.SCREEN_ROWS - 1;
            base.activate(prevReceiver);
            LCD_Manager lm = _parent.getLCD();

            lm.updateStatusFMODE("   ");
            lm.forcePaint();
        }
Пример #2
0
        public override void activate(string prevReceiver)
        {
            base.activate(prevReceiver);
            LCD_Manager lm = _parent.getLCD();

            lm.updateStatusFMODE("ADR");
            lm.forcePaint();
            _text = new StringBuilder();
            _text.Append("    ");
        }
Пример #3
0
        public override void activate(string prevReceiver)
        {
            base.activate(prevReceiver);
            LCD_Manager lm = _parent._m_Hardware_LCD;

            lm.clearScreen();
            lm.showSplash();
            lm.forcePaint();
            _splashed = DateTime.Now;
        }
Пример #4
0
        public override void activate(string prevReceiver)
        {
            base.activate(prevReceiver);
            LCD_Manager lm = _parent.getLCD();

            lm.updateStatusFMODE("NUM");
            lm.forcePaint();
            _stackInput            = _parent._m_RPN_Stack;
            _stackInput._DataEntry = new StringBuilder();
            _stackInput._DataEntry.Append(' ');
            _mode = _Whole;
        }
Пример #5
0
        public void shutdown()
        {
            // TODO: Simulator dog-and-pony here
            _m_Hardware_LCD.clearScreen();
            _m_Hardware_LCD.showSplash();
            _m_Hardware_LCD.forcePaint();
            string returnReceiver = current_Receiver.Moniker;

            // checks for Simulator only;
            // the actual ESP32 hardware is simply off!
            switch (returnReceiver)
            {
            case "OFF":
            case "CONFIRMATION":
            case "Data_Erase":
            case "Prog_Erase":
                returnReceiver = current_Receiver.getReturnReceiverMoniker();
                break;

            case "ADDRESS":
            case "ADDRESS_AMX":
            case "ADDRESS_AXM":
            case "ADDRESS_MC":
            case "ADDRESS_PC":
            case "NUMBER":
            case "NUMBER_DATA":
            case "NUMBER_PROG":
            case "TEXT":
                current_Receiver.tick(31);
                returnReceiver = current_Receiver.getReturnReceiverMoniker();
                break;

            default:
                break;
            }
            _m_RPN_Functions.saveState(returnReceiver);
            _m_Hardware_LCD.clearScreen();
            _m_Hardware_LCD.forcePaint();
        }
Пример #6
0
        public override void activate(string prevReceiver)
        {
            base.activate(prevReceiver);
            LCD_Manager lm = _parent.getLCD();

            if (prevReceiver.StartsWith("PROG"))
            {
                lm.updateTerminalLine(10, _parent._m_Program_Memory.toString());
            }
            lm.updateStatusFMODE("MEM");
            lm.forcePaint();
            _text = new StringBuilder();
        }
Пример #7
0
        public override void activate(string prevReceiver)
        {
            base.activate(prevReceiver);
            LCD_Manager lm = _parent._m_Hardware_LCD;

            lm.clearScreen();
            for (int i = 0; i < 256; i++)
            {
                int x = (i % 29) * 11;
                int y = (i / 29) * 20;
                lm.outputChar(x, y, (byte)i, System.Drawing.Color.Orange, System.Drawing.Color.Black);
            }
            lm.forcePaint();
        }
Пример #8
0
        public override void activate(string prevReceiver)
        {
            _parent.getFunctions().clearStopCondition();
            _lastUIUpdate = DateTime.Now;
            if (_parent._m_backgroundWorker.IsBusy)
            {
                _parent._m_backgroundWorker.CancelAsync();
            }
            else
            {
                _parent._m_backgroundWorker.RunWorkerAsync();
            }
            base.activate("AUTO_N");
            LCD_Manager lm = _parent.getLCD();

            lm.updateStatusFMODE("RUN");
            lm.forcePaint();
        }