TextLCD Phidget TextLCD for Phidget Modules with LCD displays (like the 1203)

This element allows you access to a  PhidgetTextLCD device, like the 1203. This element only allows access to the LCD funtionality.

With this element, you can access to the module directly (with the serial number) or through the network, using the WebService of the phidget's driver  in a remote computer with the phidget TextLCD connected (here, you need the IP, port and password too).

Usage

To use any Phidget element, drag an drop its icon to the list of model elements of your model. Then, edit the connection parameters and invoke phidget.connect() in your code.

All methods returning a boolean will return true on successful completion of the command, false otherwise. Methods returning a double value will return Double.NaN if there is any error when connecting to the phidget.

Available method for this particular phidgets include:

Example of use

// Init the module
myTextLCD.connect();
// Adjusting contrast, brightness, cursor and backlight
myTextLCD.setContrast(100);
myTextLCD.setBrightness(50);
myTextLCD.setCursor(true);
myTextLCD.setCursorBlink(true);
myTextLCD.setBacklight(true);
// a message
myTextLCD.setDisplayString(0, "Hello from EJS..."); // 0 -> first row