Reseller
 
 
Serial Display Module - VB.NET Example

These examples shows how to utilize Serialport class to control Serial LCD display modules

Example 1 : Display System Time and Date on SC1602A Serial LCD

    SC1602A LCD  

This examples demonstrates how to send control characters to the LCD.

Clear LCD , control character 13 ( 0x0D ) , Cursor Home command , control character 11 ( 0x0B ) , Next line , 12 ( 0x0C )

Dim Data() As Byte

Data = New Byte() {11,12,13}

Serialport1.write( Data, 2, 1 ) ' Clear LCD command.

Serialport1.write( Label1.Text ) ' Send ASCII text to row 0 ( Time )

Serialport1.write( Data, 1,1 ) ' Move to next line

Serialport1.write( Label2.Text ) ' Send ASCII text to row 1 ( Date )

Download Source Code here


Example 2 : Display current time of 4 different cities on SC2004A
       
     
       

This examples demonstrate how to update text on different location on the LCD.

Only the time zone column on the LCD is updated each time the time changes. Move cursor position command is used.

Example 2 source code here

 
 
 
   
 
Copyright© SILICON CRAFT 2006