-
Notifications
You must be signed in to change notification settings - Fork 0
Sequent Microsystems LCD Adapter HAT command line Documentation
The smlcd command line interface is created to access all the features of the Sequent Microsystems LCD Adapter HAT. A complete help of the command is shown by running the -h option.
Below a list of the avilable command options:
Show the version number of the smlcd command, usage:
$ smlcd -vShow the list of all available command options and can take a command option as a parameter and display the help for that option. Example:
$ smlcd -h -v
-v Display the smlcd command version number
Usage: smlcd -v
Example: smlcd -v Display the version numberDispaly this command warranty.
Tells you if a LCD Adapter Hat is connected or not:
$ smlcd -list
Display board detectedDisplay board firmware version:
$ smlcd board
Firmware ver 02.00Send a command byte to the display, for example if you need to clear display you send the command 1:
$ smlcd cmdwr 1This option is useful for initialize the display also. The initialization procedure is specific to each display type. Please refer to your LCD display datasheet for initialization list of commands and timing. Below an example of shell script file for initialization of a 4 line display, no cursor, normal writing direction:
#!/bin/bash
#init display commands
smlcd cmdwr 60
sleep 0.01
smlcd cmdwr 12
sleep 0.01
smlcd cmdwr 6
sleep 0.01
#clear display
smlcd cmdwr 1
#set backlight to 50%
smlcd blwr 50
#replace the folowing line with your greetings message
smlcd txtwr Sequent LCD AdapterSend a data byte to the display. Example writing uppercase A at the cursor position:
$ smlcd dtwr 65