LCD

From uCtrl.net

Jump to: navigation, search

Liquid crystal display.

LCD Display

Contents

Information

A LCD is an electronically-modulated optical device shaped into a thin, flat panel made up of any number of color or monochrome pixels filled with liquid crystals and arrayed in front of a light source (backlight) or reflector. Useful for showing large amounts of information, or letting the user navigate in a menu choosing settings.

LCD and AVR

Image: LCD Thermometer LM35 sch.png

Modules that use LCD displays; Fan and temperature unit and Module stability monitoring unit 2.

Source code

The program is written in basic, using Bascom-AVR.

'--------------------------------------------------------------
'                         Thomas Jensen
'--------------------------------------------------------------
'  file: RS232_test
'  date: 27/05/2006
'--------------------------------------------------------------
Dim Name As String * 10
$crystal = 4000000
 
$baud = 9600
Config Lcdpin = Pin , Db4 = Portb.3 , Db5 = Portb.2 , Db6 = Portb.1 , Db7 = Portb.0 , E = Portb.6 , Rs = Portb.7
Config Lcd = 16 * 2
Cls
Cursor Off
 
Print "Welcome to AVR projects"
Lcd "Powerup..."
Lowerline
 
Do
Input "Give your name " , Name
 
Print "Hello " ; Name ; " your serial communication is OK!"
Lcd Name
Loop
 
End

Images

Resources

Files

Links

Retrieved from "http://uctrl.net/w/LCD"
Personal tools