menu

lcd touch panel suppliers

 

AllDigital
Config PORTC = Output

configuration:
Symbol enablepin = PORTC.0
Symbol clockpin = PORTC.1
Symbol datapin = PORTC.2

declarations:
Dim i As Byte
Dim lcdi As Byte
Dim lcdbyte As Byte
Dim lcdbytetosend As Byte
Dim rs As Bit
Dim flag As Byte
Dim mask As Byte

init:
Gosub initialiselcd

loop:
lcdbytetosend = 32
Gosub writelcddata
lcdbytetosend = “H”
Gosub writelcddata
lcdbytetosend = “e”
Gosub writelcddata
lcdbytetosend = “l”
Gosub writelcddata
lcdbytetosend = “l”
Gosub writelcddata
lcdbytetosend = “o”
Gosub writelcddata
lcdbytetosend = 32
Gosub writelcddata
lcdbytetosend = “W”
Gosub writelcddata
lcdbytetosend = “o”
Gosub writelcddata
lcdbytetosend = “r”
Gosub writelcddata
lcdbytetosend = “l”
Gosub writelcddata
lcdbytetosend = “d”
Gosub writelcddata
lcdbytetosend = “!”
Gosub writelcddata

WaitMs 4000
lcdbytetosend = 0x01 ‘clear screen
Gosub writelcdcommand

WaitMs 2000

Goto loop
End


writelcdnibble:
Low enablepin
Low clockpin
If rs = 1 Then High datapin Else Low datapin

Gosub toggleclockpin

‘shift in 4 bits
mask = 8
For lcdi = 1 To 4
flag = lcdbyte And mask
If flag = 0 Then Low datapin Else High datapin
Gosub toggleclockpin
mask = ShiftRight(mask, 1)
Next lcdi

‘now strobe the clock one more time because ST+SC are tied
Gosub toggleclockpin

‘toggle the enable pin to “flush” the data into the lcd
Low datapin
High enablepin
Low enablepin

Return


toggleclockpin:
‘toggle the clock pin
High clockpin
Low clockpin
Return


writelcddata:
rs = 1
Gosub senddata
Return


writelcdcommand:
rs = 0
Gosub senddata
Return


senddata:
lcdbyte = ShiftRight(lcdbytetosend, 4)
Gosub writelcdnibble
lcdbyte = lcdbytetosend And 15
Gosub writelcdnibble
Return


initialiselcd:
For i = 1 To 3
WaitMs 50
lcdbytetosend = 0x20
Gosub writelcdcommand
Next i

WaitMs 50
lcdbytetosend = 0x28 ‘4 bits, 2 lines, 5×7 font
Gosub writelcdcommand

WaitMs 50
lcdbytetosend = 0x0c ‘display on, no cursors
Gosub writelcdcommand

WaitMs 50
lcdbytetosend = 0x06 ‘entry mode auto-increment
Gosub writelcdcommand

WaitMs 50
lcdbytetosend = 0x01 ‘clear screen
Gosub writelcdcommand

Return

 

lcd touch panel suppliers Production Line
After years of development, in order to better integrate the company’s resources and provide customers with the most advantageous products, in 2016, all the Shenzhen production lines were relocated to Yongzhou, Hunan province. At present, Shenzhen office and Hunan factory have a total of more than 500 employees, with more than 20,000 square meters of standard clean plant.
we’ll ensure you always get
best results
Latest News lcd touch panel suppliers
What is the difference between a capacitive touch screen and a resistive touch screen?
What is the difference between a capacitive touch screen and a resistive touch screen?

Time:2022-6-21

During operation, the resistive touch screen can only judge one touch point at a time. If there are more than two points of contact, no correct judgment can be ...
HDMI LCD touch screen supplier analysis
HDMI LCD touch screen supplier analysis

Time:2021-12-30

Since its development, touch screens have not only become an indispensable part of the automation field, but also expanded their application industries from tra...
The evolution of UK TFT LCD Display manufacturer
The evolution of UK TFT LCD Display manufacturer

Time:2022-5-7

If you are looking for a UK TFT LCD Display manufacturer, you are in the right place. We offer a wide range of high-quality TFT LCD displays, perfect for any ap...
Capacitive touch digitizer suppliers give you a variety of options
Capacitive touch digitizer suppliers give you a variety of options

Time:2022-5-23

There are many suppliers of capacitive touch digitizers, but how do you know which one is right for you? Here are a few things to consider when choosing a suppl...
How to choose a reliable low-priced Anti-bacterial Touch manufacturer
How to choose a reliable low-priced Anti-bacterial Touch manufacturer

Time:2022-4-8

In the sales process of the market, the same type of products will be provided by different manufacturers, so customers will compare and choose related products...
LCD Touch Panel that offers a sleek and modern look for your device
LCD Touch Panel that offers a sleek and modern look for your device

Time:2022-5-28

When choosing a touch panel for your device, you can't go wrong with an LCD touch panel. The sleek and modern look of the LCD touch panel is perfect for those w...
Choose US HDMI TFT LCD Touch Display manufacturer for better products
Choose US HDMI TFT LCD Touch Display manufacturer for better products

Time:2022-5-19

The use of TFT LCD Touch Displays has grown in popularity over the years with the advent of high technology such as laptops, iPods, TVs, and other gadgets. If y...
HDMI usb touch display manufacturers use multi-function interfaces to meet user needs
HDMI usb touch display manufacturers use multi-function interfaces to meet user needs

Time:2021-12-18

The main function of the display is to display the transmitted signal in front of the public in the form of images. And this kind of digital communication needs...
Hot Products