public override void activate(string prevReceiver) { base.activate(prevReceiver); if (prevReceiver.StartsWith("DATA")) { tick(0); return; } LCD_Manager lm = _parent._m_Hardware_LCD; Extended_Memory em = _parent._m_Extended_Memory; lm.clearScreen(); lm.outputStatus( _parent._m_Program_Memory.getCounter(), em.getCounter(), "MEM", " "); int cnt = (int)em.getCounter(); for (int i = 10, j = cnt; i >= 0; i--, j--) { string s = em.toString("", j); lm.outputTerminalLine((uint)i, s); } lm.forcePaint(); }
public override void activate(string prevReceiver) { base.activate(prevReceiver); if (prevReceiver.StartsWith("FILE")) { tick(0); return; } LCD_Manager lm = _parent._m_Hardware_LCD; lm.clearScreen(); lm.outputStatus( _parent._m_Program_Memory.getCounter(), _parent._m_Extended_Memory.getCounter(), " ", " "); string[] Lines = _parent._m_RPN_Functions.getOutputLines(); _parent._m_Hardware_SD.getFolderListing(Lines, _nLinesShown, LCD_Manager.SCREEN_COLS - 1); for (int i = 0; i < _nLinesShown; i++) { lm.outputTerminalLine((uint)i, Lines[i]); } lm.forcePaint(); }
public override void activate(string prevReceiver) { base.activate(prevReceiver); if (prevReceiver.StartsWith("PROG")) { tick(0); return; } LCD_Manager lm = _parent._m_Hardware_LCD; Program_Memory pm = _parent._m_Program_Memory; lm.clearScreen(); lm.outputStatus( pm.getCounter(), _parent._m_Extended_Memory.getCounter(), pm.getEModeName(), " "); int display_PC = (int)pm.getCounter(); string[] _displayLines = pm.getPreviousLines(LCD_Manager.SCREEN_ROWS - 1); for (int i = 10, j = 0, k = display_PC; i >= 0; i--, j++, k--) { if (k < 0) { lm.eraseTerminalLine((uint)i); continue; } string s = k.ToString("0000"); s += (k == display_PC) ? "> " : " "; lm.outputTerminalLine((uint)i, s + _displayLines[j]); } lm.forcePaint(); }
public override void activate(string prevReceiver) { base.activate(prevReceiver); if (prevReceiver.StartsWith("AUTO")) { tick(0); return; } LCD_Manager lm = _parent.getLCD(); RPN_Stack st = _parent._m_RPN_Stack; lm.clearScreen(); lm.outputStatus( _parent._m_Program_Memory.getCounter(), _parent._m_Extended_Memory.getCounter(), _parent._m_RPN_Stack.getDModeName(), " "); lm.outputCalcRegister(0, st.X.toString()); lm.outputCalcLabel(0, st.X_Label); lm.outputCalcRegister(1, st.Y.toString()); lm.outputCalcLabel(1, st.Y_Label); lm.outputCalcRegister(2, st.Z.toString()); lm.outputCalcLabel(2, st.Z_Label); lm.outputCalcRegister(3, st.T.toString()); lm.outputCalcLabel(3, st.T_Label); lm.forcePaint(); }