Blog

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
European tft LCD touch Display manufacturers let you buy high-quality products at low prices
European tft LCD touch Display manufacturers let you buy high-quality products at low prices

2022-05-04

Are you looking for a reliable and affordable supplier of TFT LCD touch screens for Your Business? European TFT LCD touch Display manufacturers choose TFT LCD touch screen manufacturers, there are many factors to consider. But if you’re looking for...
cheap Capacitive Touch Screen saves you living expenses while giving you a high-end experience
cheap Capacitive Touch Screen saves you living expenses while giving you a high-end experience

2022-06-01

As the world returns to the office - at least to some extent - one of the biggest concerns for companies is ensuring that a given work setup keeps employees safe, connected, happy and effective at work. The look of...
Detailed inspection methods for LCD Display manufacturers
Detailed inspection methods for LCD Display manufacturers

2021-10-11

Liquid crystal display is a common display and one of the most widely used displays in the display industry. It has the characteristics of good display effect, simple structure, low energy consumption, high brightness and wide temperature range. Many industry...
Choose US HDMI TFT LCD Touch Display manufacturer for better products
Choose US HDMI TFT LCD Touch Display manufacturer for better products

2022-05-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 you are looking for a quality HDMI TFT LCD touch Display...
Choose a Japan Pen Touch Display manufacturer to bring your designs to life
Choose a Japan Pen Touch Display manufacturer to bring your designs to life

2022-05-20

As a leading manufacturer of stylus displays, we are proud to supply our products to the Japanese market. Our products are designed to provide the best user experience and we are committed to delivering the highest quality products. Our products...
Capacitive touch screen suppliers inventory the many advantages of capacitive touch screens
Capacitive touch screen suppliers inventory the many advantages of capacitive touch screens

2021-11-08

There are many types of touch screens. In recent years, capacitive touch screens have achieved high successes and have become indispensable in many industries. However, many people are not very aware of the advantages of this type of touch screen....
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

2022-05-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 who want to add a stylish touch to their...
What are the maintenance methods of the touch screen?
What are the maintenance methods of the touch screen?

2021-10-06

Due to technical limitations and poor adaptability to the environment, the screen cannot work normally due to pollution such as water droplets and dust, so the touch screen also needs regular maintenance like ordinary machines. In addition, since the touch...
close
Start typing to see products you are looking for.
Open chat

Shopping cart

close
Sidebar Scroll To Top