V1/Toolbox.NETMF.Hardware.LcdBoost/LcdBoostProxy.cs
/// <summary>
/// Write a text string (as plain ASCII) on the video cache
/// </summary>
/// <param name="text">The string to be written</param>
/// <remarks>
/// The text starting reference has to be set by using the <see cref="SetCursorPosition"/>.
/// After this call, the logical position is moved accordingly
/// </remarks>
Write a text string (as plain ASCII) on the video cache
Write a text string ( as plain ASCII ) on the video cache
public void Write(string text)
        {
            if (text == null)
                return;
            byte[] vrow = this._cache.Data[this._cursorY];
            int residue = this._cache.Width - this._cursorX;
            for (int i = 0, count = text.Length; i < count; i++)
            {
                vrow[this._cursorX] = (byte)(int)text[i];
                if (--residue == 0)
                    break;
                else
                    this._cursorX++;
            }
        }
public void Write ( string text ) { if ( text == null ) return ; byte [ ] vrow = this . _cache . Data [ this . _cursorY ] ; int residue = this . _cache . Width - this . _cursorX ; for ( int i = 0 , count = text . Length ; i < count ; i ++ ) { vrow [ this . _cursorX ] = ( byte ) ( int ) text [ i ] ; if ( -- residue == 0 ) break ; else this . _cursorX ++ ; } }
Write a text string (as plain ASCII) on the video cache
Write a text string ( as plain ASCII ) on the video cache
text
string
The string to be written
The string to be written
remarks
The text starting reference has to be set by using the .
After this call, the logical position is moved accordingly
The text starting reference has to be set by using the . After this call the logical position is moved accordingly