LedSign->setText(string $text, boolean $simpleMoveLeft)

Description

Sets the text displayed on the sign to $text.

Parameters

  • $text: The text to be displayed on the sign. Within the $text string, you can use special markup to control font styles, add multiple frames, set transitions and insert dynamic text, such as the current date.
  • $simpleMoveLeft: When this is true, transitions specified in the $text string are disabled and text simply moves (scrolls) left. Parameter is optional and defaults to false.

Return values

Returns nothing.

Examples

Displays the text “Hello World” on the sign:

<?
 
require_once('LedSign.php');
 
$ledSign = new LedSign('192.168.0.24');
$legSign->setText('Hello World');
 
?>

Displays the text “Hello green world”, with the word “green” being in
green color and the words “Hello” and “World” being red.

<?
 
require_once('LedSign.php');
 
$ledSign = new LedSign('192.168.0.24');
$legSign->setText('Hello {green} green {red} World');
 
?>


Leave a Reply