Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Knowledge Base > Code Library > LCD display simulation

Thread Tools Display Modes
Old 11-23-2002, 09:15 AM
Ales Zigon's Avatar
Ales Zigon Ales Zigon is offline
Dead dog's ghost

Forum Leader
* Expert *
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
Default LCD display simulation

This is a little demo on simulating LCD display (like the one on your cell phone).
It uses 180 x 180 screen to draw and supports colors.

Basic character set is shown in the code (from A to Z), so if you want to use it, expand it to full chr set (sharacters are made in 5x7 format).

Method to draw anything to the surface is DrawPixel. With it, you can set each individual bit (pixel, LCD segment,...) on or off. This method is also used by PrintText.

You can add your own calculations to draw various objects on the display.

NOTE: Whe you print the text, make sure to raplace vbCrLf with vbLf!
Attached Files
File Type: zip lcd simulation.zip (3.2 KB, 700 views)
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!

I'm sure there are things that are more important than me - I just can't thing of any...
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..