Skip to content

Sequent Microsystems LCD Adapter HAT command line Documentation

Alexandru Burcea edited this page Feb 26, 2023 · 8 revisions

smlcd

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:

-v

Show the version number of the smlcd command, usage:

$ smlcd -v

-h

Show 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 number

-warranty

Dispaly this command warranty.

-list

Tells you if a LCD Adapter Hat is connected or not:

 $ smlcd -list
Display board detected

board

Display board firmware version:

$ smlcd board
Firmware ver 02.00

cmdwr

Send a command byte to the display, for example if you need to clear display you send the command 1:

$ smlcd cmdwr 1

This 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 Adapter

dtwr

Send a data byte to the display. Example writing uppercase A at the cursor position:

 $ smlcd dtwr 65

Clone this wiki locally