Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Phidget.WriteText
Writes text to a LCD screen.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Phidget | 13.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "Phidget.WriteText"; PhidgetRef; Font; xPosition; yPosition; Text ) More
Parameters
Parameter | Description | Example |
---|---|---|
PhidgetRef | The reference number for the phidget. | $phidget |
Font | The font of the text. Pass 3 for 6x10 font, 4 for 5x8 font and 5 for 6x12 font. |
5 |
xPosition | The X position of the start of the text string. | 0 |
yPosition | The Y position of the start of the text string. | 0 |
Text | The text to be written. | "Hello" |
Result
Returns OK or error.
Description
Writes text to a LCD screen.This function writes text to the current frame buffer at the specified location.
Changes made to the frame buffer must be flushed to the LCD screen using Phidget.Flush.
Examples
Output some text to LCD:
Set Variable [ $r ; Value: MBS( "Phidget.Clear"; $$phidget) ]
# write some text
Set Variable [ $r ; Value: MBS( "Phidget.WriteText"; $$phidget; 4; 0; 0; "Hello" ) ]
# and send all now
Set Variable [ $r ; Value: MBS( "Phidget.Flush"; $$phidget) ]
See also
Example Databases
Created 16th August 2023, last changed 17th August 2023