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
Capacitive touch digitizer suppliers provide high-quality products for technological development
Capacitive touch digitizer suppliers provide high-quality products for technological development

2021-12-21

Nowadays, the application of electronic technology has achieved very obvious results in various fields. Electronic products also have different forms of expression with the support of technology. Some have become mobile phones, some have become computers, and some have become...
LCD touch display supplier seeks development with technology
LCD touch display supplier seeks development with technology

2021-11-09

In the process of using the liquid crystal display, the liquid crystal molecules are stimulated by electric current to produce dots, lines and surfaces, and then cooperate with the back light tube to form the picture display we see. The...
Looking for a Chinese LCM factory manufacturers to shape a more beautiful LCD world
Looking for a Chinese LCM factory manufacturers to shape a more beautiful LCD world

2021-10-06

In the era of digital development, video playback and transmission are all connected through the drive, and the digital signal is transmitted to the display, and then everyone can see a clear picture when watching. If you want to have...
TFT LCD touch display manufacturer recommend satisfactory products for you
TFT LCD touch display manufacturer recommend satisfactory products for you

2022-06-17

There are so many names of LCD products that many terminal manufacturers are in the process of purchasing LCD products. What are the screen application industries? Next, Lean Electronic Technology will explain to you. 1. What is a TFT LCD...
TFT LCD touch display manufacturers provide better display effects
TFT LCD touch display manufacturers provide better display effects

2021-12-18

In the field of electronic products, our understanding of products is actually not very deep. For example, our mobile phones. Why are some mobile phones very expensive and some are very cheap? When we compare mobile phones, we will I...
touch screen display suppliers in china take you to understand
touch screen display suppliers in china take you to understand

2022-07-05

What is a touch screen display The principle of the touch display is actually very simple. Simply put, it is just a touch screen installed on the display to become a display with touch function. At present, the most popular...
Everything you need to know about Japan HDMI LCD touch panel supplier
Everything you need to know about Japan HDMI LCD touch panel supplier

2022-08-19

Japan HDMI LCD touch panel supplier, born for the Japanese market. Our products have been carefully designed by Japanese engineers to meet Japanese customers' requirements for high-quality products. Our products have excellent performance and durability, and are the preferred HDMI...
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...
close
Start typing to see products you are looking for.
Open chat

Shopping cart

close
Sidebar Scroll To Top