0% found this document useful (0 votes)
17 views

Vlcds I2C Instruction Set

hunda display manual

Uploaded by

sapler2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Vlcds I2C Instruction Set

hunda display manual

Uploaded by

sapler2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Hunda tech

vLcds I2C Instruction set

Document update date Update content

20171101 Original version

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

Catalog
VlcdS Instruction set ........................................................................................................................... 3

1. Configuration instruction list ..................................................................................... 3

2. Basic instruction list ........................................................................................................... 12

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

VLCDS INSTRUCTION SET

The instruction set of vLcds LCM is divided into the configuration instruction set

and the basic instruction set. The configuration instruction is oriented to the control

operation, the parameters of the control are pre configured in the host computer

software VisualLcdStudio, and downloaded to the memory of the screen together with

the image. The basic instructions are the basic display operations, including the XY

coordinates, color, font size operation, etc.

1. Configuration instruction list

Function Command Parameter Illustrate

Display 0x70 Page_Id Page_Id: page Id(1 bytes)

page

Read page 0x71 null Read the current page Id number.

Id Read data format:

0x71 0xff Page_Id Statu 0xff 0xff

Page_Id: current page Id(1 bytes)

Status: Read state(1 bytes)

0x6f:read successfully

0x65: read failure

Note: the return value of Page_Id is 0xff,

indicating that there is no page currently

displayed

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

Update text 0x74 Control_Id Writes text data to a text controls.

control +Page_Id Control_Id: control Id(1 bytes)

+String Page_Id: page Id(1 bytes)

String: Text data (the longest 58 bytes).

Update 0x6E Control_Id Write numeric data to a number controls.

number +Page_Id Control_Id: control Id(1 bytes)

controls +Number Page_Id: page Id(1 bytes)

Number: number data (2 bytes), high in the

front.

Upload null null Press the button control, the LCM will

button automatically upload button information.

controls Upload data format:

data 0x62 Control_Id Page_Id Status keytype

keyvalue

Control_Id: control Id(1 bytes)

Page_Id: page Id(1 bytes)

Status: Button status (1 bytes).

0x44:Press button

0x55: Button release

keytype:Button function(1 bytes)

0x30: Character key for ASCII code

0x31: Clear all text character functions

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

0x32: Delete 1 text character functions

0x33: Add a space character

0x34: Confirm the function key

0x35: Switch page function

0x36: Upload button Id function

Keyvalue: The button value (1 bytes)

Update Edit 0x65 Control_Id Writes text data to edit controls

controls +Page_Id Control_Id: Control Id(1 bytes)

data +String Page_Id: page Id(1 bytes)

String: Text data (the longest 58 bytes)

Read Edit 0x75 Control_Id Read Edit controls text data.

controls +Page_Id Control_Id: control Id(1 bytes)

data Page_Id: page Id(1 bytes)

Read data format:

0x75 Control_Id Page_Id Status 0xff

StringLength String

parameter:

Control_Id: control Id(1 bytes)

Page_Id: page Id(1 bytes)

Status: Read state(1 bytes)

0x6f: read successfully

0x6e: Invalid text data for Edit control

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

0x65: read failure

StringLength: String Length (the longest 58

bytes)

String:Text string data

Note: Edit control and button control in

conjunction with, press the button to

confirm the function, in order to read the

text data.

Update 0x6F Control_Id Writes numeric values to the progress bar

progress +Page_Id control.

bar control +ProgressV Control_Id: control Id(1 bytes)

data alue Page_Id: page Id(1 bytes)

ProgressValue: Progress bar value (1 bytes).

Valid range (0~100)c

Update the 0x63 Control_Id Writes data to the check box controls.

check box +Page_Id Control_Id: control Id(1 bytes)

control +CheckBoxS Page_Id: page Id(1 bytes)

status tatu CheckBoxStatu: Check box state settings (1

bytes)

0x55: No selection state

0x53: Select state

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

Check box null null Click the check box control, the screen will

control data automatically upload the check box control

upload state.

Upload format:

0x60 Control_Id Page_Id Status keytype

keyvalue

Control_Id: control Id(1 bytes)

Page_Id: page Id(1 bytes)

Status: Fixed value 0x6f (1 bytes)

key type: Fixed value 0xff (1 bytes)

keyvalue: Check box status (1 bytes)

0x55: No selection state

0x53: Select state

Read the 0x64 Control_Id Read the status of the marquee controls.

status of +Page_Id Control_Id: control Id(1 bytes)

the Page_Id: page Id(1 bytes)

checkbox Read data format:

control 0x64 Control_Id Page_Id Status keytype

keyvalue

parameter:

Status: Read state(1 bytes)

0x6f: read successfully

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

0x65: read failure

key type: Fixed value 0xff (1 bytes)

keyvalue: Check box status (1 bytes)

0x55: No selection state

0x53: Select state

Update 0x7A Control_Id Writes data to CircleGauge controls.

CircleGauge +Page_Id Control_Id: control Id(1 bytes)

control data + Page_Id: page Id(1 bytes)

CircleGauge CircleGaugeValue: CircleGauge pointer

Value radian data (2 bytes).

Update 0x61 Control_Id Writes data to BarGauge controls.

BarGauge +Page_Id Control_Id: control Id(1 bytes).

control data + Page_Id: page Id(1 bytes)

BarGaugeVa BarGaugeValue: BarGauge level data (2

lue bytes). Valid range (0~100).

Update 0x77 Control_Id Writes data to WaterGauge controls.

WaterGaug +Page_Id Control_Id: control Id(1 bytes).

e control + Page_Id: page Id(1 bytes)

data WaterGaug WaterGaugeValue: WaterGauge level data

eValue (2 bytes). Valid range (0~100).

Update 0x6D Control_Id Writes data to thermometer controls.

thermomet +Page_Id Control_Id: control Id(1 bytes).

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

er control + Page_Id: page Id(1 bytes).

data Temperatur TemperatureValue: Thermometer data (2

eValue bytes). Valid range (0~120).

Update 0x79 Control_Id Writes data to battery controls.

battery +Page_Id Control_Id: control Id(1 bytes).

control data + Page_Id: page Id(1 bytes).

BatteryValu BatteryValue: Battery capacity data (2 bytes).

e Valid range (0~100).

Update 0x66 Control_Id Write a data point to the curve waveform

curve +Page_Id control, and refresh the display.

waveform + Control_Id: control Id(1 bytes).

control data Channel_No Page_Id: page Id(1 bytes).

+WaveForm Channel_No: Curve channel number (1

Value bytes).

0x01: Update data with curve 1

0x02: Update data with curve 2

WaveFormValue: Curve waveform data (1

bytes). Valid range (0~250).

Clear curve 0x76 Control_Id Clear the curve waveform control data and

waveform +Page_Id clear display.

control data Control_Id: control Id(1 bytes).

Page_Id: page Id(1 bytes).

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

Input curve 0x6A Control_Id Input waveform control a data point, but not

waveform +Page_Id refresh the curve.

control data + Control_Id: control Id(1 bytes).

point Channel_No Page_Id: page Id(1 bytes).

+WaveForm Channel_No: Curve channel number (1

Value bytes).

0x01: Curve 1 input data

0x02: Curve 2 input data

WaveFormValue: Curve waveform data (1

bytes). Valid range (0~250).

Refreshing 0x6B Control_Id Refresh the curve from the new display.

curve +Page_Id Control_Id: control Id(1 bytes).

waveform + Page_Id: page Id(1 bytes).

control data Channel_No Channel_No: Curve channel number (1

bytes).

0x01: Refresh curve 1

0x02: Refresh curve 2

0x03: Simultaneous update of curves 1

and 2

Update 0x5F Control_Id Write data to slider controls.

slider +Page_Id Control_Id: control Id(1 bytes).

control data + Page_Id: page Id(1 bytes).

10

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

SliderValue SliderValue: Slide bar data (1 bytes). Valid

range (0~100).

Read slider 0x68 Control_Id Reads the slider controls current slider data.

control data +Page_Id Control_Id: control Id(1 bytes).

Page_Id: page Id(1 bytes).

Read data format:

0x68 Control_Id Page_Id Status keytype

keyvalue

parameter:

Status: Read state(1 bytes).

0x6f: read successfully

0x65: read failure

keytype: Fixed value 0xff (1 bytes).

keyvalue: Current sliding bar data (1 bytes).

Valid range (0~100).

Data upload null null After dragging the slider control, the slider

of slider is released and the display will automatically

control upload the position data of the slider

control.

Upload format:

0x67 Control_Id Page_Id Status keytype

keyvalue

11

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

Control_Id: control Id(1 bytes).

Page_Id: page Id(1 bytes).

Status: Fixed value 0x55 (1 bytes).

key type: Fixed value 0xff (1 bytes).

keyvalue: Position data (1 bytes), range

0~100.

2. BASIC INSTRUCTION LIST

Function Command Parameter Illustrate

Connect 0x48 null The LCM receives the connection

LCM command and returns the data to the

controller, indicating the online state.

LCM reset 0x4A 0x52+0x65+0x73 LCM reset, clear internal data and

+0x65+0x74 display.

Clear screen 0x43 BackColor Specify color clear screen.

BackColor: RGB565 color value (2

bytes), high position in front.

Display 0x49 X +Y Display image with specified

image + Image_No coordinates.

X: X address coordinates (2 bytes), high

in the front

Y: Y address coordinates (2 bytes), high

12

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

in the front

Image_No: Image number (1 bytes).

Image cut 0x4F Image_X Cutting the full area of the full screen

display + Image_Y image.

+Image_W Image_X: Cut the image starting X

+Image_H + address (2 bytes), high in the front.

Image_No Image_Y: Cut the image starting Y

address (2 bytes), high in the front.

Image_W: The width of the cut image (2

bytes) and the high position in front.

Image_H: The height of the image is cut

(2 bytes) and the high position is in

front.

Image_No: image number (1 bytes)

Text display 0x53 X Specify coordinate display text.

+Y X: X address (2 bytes), high in front..

+DisplayType Y: Y address (2 bytes), high in front.

+Fontsize DisplayType:Display type (1 bytes).

+ Image_No 0x00: Transparent(transparent

+BackColor display).

+ForeColor 0x01: Color(with color background

+String display).

13

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

0x02: CutImage(cut image

background display).

Fontsize: Text size number (1 bytes).

0x10: Height 16 font.

0x18: Height 24 font.

0x20: Height 32 font.

0x30: Height 48 font.

0x40: Height 64 font.

Image_No: image number (1 bytes).

BackColor: Background color, RGB565

color value (2 bytes), high position in

front..

ForeColor: Text color, RGB565 color

value (2 bytes), high position in front.

String: String (the longest 48 bytes),

high in the front.

Message 0x4D Fontsize Message display with form.

prompt +DelayTime Fontsize: Message literal size number (1

display +String bytes)

0x18: Height 24 font.

0x20: Height 32 font.

DelayTime: The message displays delay

14

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

time, in seconds (1 bytes).

String: Message string (the longest 58

bytes), high in the front..

Draw 0x52 X +Y Draw rectangle box at the specified

rectangle +Width location

box +Height X: X address (2 bytes), high in the front.

+ ForeColor Y:Y address (2 bytes), high in the front.

Width: Width of rectangular box.

Height: Height of rectangular box.

ForeColor: Rectangle box color, RGB565

color value (2 bytes), high position in

front.

Draw fill 0x46 X +Y Fill color in specified area

+Width X: X address (2 bytes), high in the front.

+Height Y: Y address (2 bytes), high in the front.

+ ForeColor Width: Rectangular width.

Height: Rectangle height.

ForeColor: Fill in color, RGB565 color

value (2 bytes), high position in front.

Draw line 0x4C X1+Y1 Draw a straight line at the specified

+X2+Y2 position.

+ ForeColor X1: The line start X coordinates (2

15

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

bytes), and the high position is in front..

Y1: The line start Y coordinates (2

bytes), and the high position is in front..

X2: The line ends the X coordinate (2

bytes) and the high position is in front..

Y2: The line ends the Y coordinate (2

bytes) and the high position is in front.

ForeColor: Linear color, RGB565 color

value (2 bytes), high position in front.

Backlight 0x42 LightValue Adjust backlight brightness.

brightness LightValue: Range 0~100 (1 bytes).

adjustment 0: Turn off backlight

100: Backlight most bright.

Note: with touch screen, when the

backlight is turned off and the touch

function is opened, the backlight will

automatically open after touch.

Resistance 0x50 null Resistance touch calibration switch.

touch Note: capacitive touch does not require

calibration calibration.

Touch test 0x54 Enable Touch test switch.

Enable:Test switch (1 bytes).

16

Website: www.hundatech.com mail: [email protected] Skype:[email protected]


Hunda tech

0x00:disable test

0x01:enable test

Touch 0x51 Enable Touch enable switch.

settings Enable:Enable switch (1 bytes).

0x00: Close touch function

0x01: Open touch function

Note: power on default opens the touch

function.

17

Website: www.hundatech.com mail: [email protected] Skype:[email protected]

You might also like