AIRHMI Nextion Muadili

user ınstructıon

 
airhmi5.png

Double-click the AIRHMISETUP.msi file to install the AirHMI Editor on your computer.
Then follow the steps below

1-Kurulum Sihirbazı.png

Select the installation folder and other options as desired and press next to start the installation

            AIRHMI Visual Screen Creator is designed to create the highest level of satisfaction and the most efficient time to design Human Machine Interface GUIs for AIRHMI LCD displays. In the use of the editor, we have the functionalities of the world of Design and Programming: In addition to the support of the screen design that you can be original from the richness of object in visuality and you can easily create according to your wishes, it also provides many convenience to the programming part.  

1.AirHMI Visual Screen Creator INSTALLATION

1.1-klasör seçin.jpg

2. Creating Project

     To interface with AirHMI, you first need to download and install AirHMI Editor on your computer. The drag-and-drop feature in the AirHMI Editor program facilitates interface development. With AirHMI Editor, you can add many components to your projects, such as Buttons, Images, Text, Progress bar, Gauge, Key, Analog and Digital values, such as digital inputs and outputs.


     The program is very easy to install. After installation, you should run the AirHMI Editor program. You will see a page as shown in the pictures below. You can create your project by following File - New path in the upper left corner of this page or by clicking New Project on the first landing page of the program.

2- Visual Creator.jpg
2.1 new Project.jpg

      After registration, you will see a page as shown in the image below. On the page that appears you should make settings related to the size and resolution of the screen.

2.2- Screen Select.jpg

3. Device Connection

      Two methods can be used to energize the AirHMI display; POWER connector or USB connector. The standard baudrate for the device is 115200 8N1.

 

1) USB Connector;
 

3.1 USB Connector.jpg

2) If the POWER connector is used, the pins of the connector are as follows:

3.2 Power Cable Color.jpg

4. AirHMI EDITOR INTERFACE

4.1.jpg

4.1 TITLE BAR

The title bar contains the application name and version number when an AirHMI project is opened.

4.2 MAIN MENU AND TOOLBARS

4.2 menu bar.jpg

File Menu


          There are commands for users such as Open New Project, Save Project, Save Project As, Open an Existing Project and Exit. The important point here is that if you want to open a new project while an existing project is open, the save message on the screen should be given confirmation if the old project is stored on the computer or the changes are not lost.
 

Windows
 

      Within the window area;
• Creating a new working screen in addition to the main screen used in the project (Add Screen)
• Loading of designed interface screen to AirHMI LCD Card via selected USB port (Download to Flash)
• Export the designed interface screen to a desired file in the computer as external files (Download to SD Card). It is used to load Bootloader via SD Card when USB installation is not desired. When the files are copied to the SD card and the project is run via the SD Card, the files are loaded from the SD Card as if they were loaded via USB.


Tools
 

In the tools, there is a section in the Options section for selecting USB ports and setting the baud rate. Since USB loading works at many baud rates, the user can select the desired baud rate setting and load it.

4.3 alıgnment

4.2 menu bar.jpg

      Align Left, Align Right, Align Upper and Align Down; By means of the vertical and horizontal averaging properties, the determined objects are aligned or centered as desired.

       The Bring to Front and Send to Back features can be used to determine which nested objects are in the foreground and are used forobjects that are required to stand in the background.

COMPONENT PANE

4.3 Component.jpg

      The AirHMI LCD Design Screen contains the readymade objects to be displayed. Click on the object you want to use and drag to the screen area is added to the project. External objects not shown on the screen are also included in this section: Timer and Variable. These objects are located in the Area of Non-Visual Components section at the bottom of the screen area. Setting the properties (location, size, name, etc. ) of the objects in the project-specific project is found in the
Attribute Field of Objects section.

4.4 SCREEN / COMMAND TAB

4.4 Screen Command Tab.jpg

        Design projects are not generally used as single screens but require different screens at the same time. Opening general display screen, menu setting screen, detailed display screen etc… For this reason, AirHMI can create multiple original and screen designs from the editor in line with user requests. The screen / command tab is used to select which screen to work on.

4.4 Add Screen.jpg

        The Window / Add Screen tab can be used to add a new worksheet, or you can select Add Screen by right-clicking in an empty place on the worksheet. To delete the opened worksheet, simply press the cross (x) at the end of the Display / Command Tab line.


        To change the name of the screen, right-click in an empty area of the screen and click the Rename tab. The name of the screen can be changed from the opened tab.

4.4 Screen Adding.jpg

4.5 Main Screen of Design Area

The AIRHMI Designer worksheet is the design visual area. In the LCD screen design, features such as which objects can be found on the screen, dimensions, writing characteristics are shown in this area.

4.5  Main Screen.jpg

4.6 Area of Non-Visual Components

4.5 E timer.jpg

      In a project, not all components are displayed on the LCD screen. there are components that do not need to be displayed on the LCD screen, such as timer and variable. It is important to display the components that are running in the background in the editor so that they are not shown on the LCD screen but this is easy to use and understandable during design.

4.7 Attribute Field of Objects

4.7 Attribute.jpg

4.7.1 Display Area of Objects Used in the Project

        Many objects can be used in LCD screen design. Each object has its own settings. In projects where more detail is required, it can be complicated to find the object to be adjusted from the design screen. This is the list of all objects used in the design to avoid confusion. In this way, the desired object can be selected and adjusted in the attribute field.

4.7.2 Attributes of Objects Display / Setting Area

         In AirHMI Editor, objects are automatically added with their initial settings when they are included in the project. Users can edit many properties of the objects they add, such as names, sizes, appearance, colors, according to their intended use and wishes.

4.8 DESCRIPTION AREA OF FEATURES

4.8.jpg

        The settings of the objects are performed in the attribute field. But there is only the attribute name. In the Description Field of Attributes, there is a description part of the attributes. The functions that attribute headers perform are generally explained.

4.9 User Project Code Menu and Toolbars

4.9 User Project.jpg

       The most important part of the project is the code phase. According to the project basis, the coding structure is used to determine what situations are shown on the design screen. The Code Menu contains some basic components that can help the user save code, copy and paste, search for keywords in code, and so on.

4.10 USER PROJECT CODE AREA

4.10.jpg

         Contains a valid AirHMI PICOC Code Instruction for the User Project Code. This section will not teach programming, but will generally help the user to add code. Within this area, users will be able to write C-based codes to the events of the Timer component or to the events of the objects they use on the screen. Screen Editor supports ready-made library codes
to minimize the software difficulty of this section, ready-made functions under the third heading (3. Functions) you can examine in detail. In addition to the functions mentioned there, all C-based codes can be written to this field and executed simultaneously in the program.

4.11 Code Area, Zoom Area

4.11.jpg

In the project design, the code area is the area where the font size can zoom in and out to the desired extent for ease of use.

5. USER CODE STRUCTURE

5.0 user code structure.jpg

       One of the most important advantages of AirHMI Editor's is its solution-oriented, time and effort-oriented design that creates the most efficient point, and its easy and understandable code structure. The code structure is prepared in C programming language. However, in order to be user-oriented and provide ease of use for the user, the necessary functions are prepared under the “stk.h” library. In this layout, where basic C libraries are attached, you can create your code using the C programming language and add the necessary functions to the beginning of your code. In addition to the ready-made C functions, you can find the ready-made functions in this manual along with descriptions of many important subjects such as control / adjustment functions of objects, LCD display sleep mode, timer code layout. The important point here is that the "stk.h" library must be included at the beginning of each code structure for these functions to work effectively.

5.1 Coding.jpg

     Sample code structure is prepared with timer. A detailed description of the timer code structure is described under

2.1 TIMER.

     Code structure can be in the Timer according to the desired situation, or the code structure that we want to operate when objects are touched can be created for resistive screens. While the code that you will create in the Event will be active in the timer program in the whole program, the code structure that you want to be active when the objects are tapped must be added to the OnUp section of the attribute.
 

5.1 TIMER

4.7 Attribute.jpg

        Perhaps the most important point in the code structure is the use of Timer. The changes that will occur in real-time operation of the designed editor screen in the project and the intervals at which these changes will occur are set within the Timer Attributes. The enable, selects whether the Timer is active or not. Interval is the interval in milliseconds at which the code is selected. Name, as the name implies, is the name of the Timer. The Event section is the opening section of the code to be generated for the project design. ETimer1_Event.c is the name of the C file where the generated code is saved.


        When using the timer, the code structure activates the code sequence at that intervals according to the time set in the Interval, regardless of the status of the objects. If the user uses a Resistive screen in its project and wants to perform an operation when an object is touched; When touched, the object that you want to process should come to "OnUp" section from the Setting attributes section and add the code under this attribute. Thus, regardless of the timer, only the code that is written when the object is touched will be active.

5.2 AirHMI SCREEN OBJECTS

5.2 Component.jpg
5.2 Button Set.jpg

5.2.1 Button

        The button object is the object that makes any action when pressed. For instance, it can be used to send data received from the user to a location, to process the received data, or to send messages. You can drag the position of the button to the desired location and adjust its size by pulling the edges.

5.3 Button.jpg

5.2.2 Label

         It is a display object used to inform the user that any identifiable label is written for any object on the screen.

5.2.2  Label.jpg

5.2.3 Image

       You should ensure that the images you add are not larger than the screen size. If the image you added is larger than the screen size, your entire image will not be displayed because there is no in-editor resizing.

       Another important point to note is that the format of the images to be added must be in PNG image format.

5.2.4 Progress Bar

      It is used in cases where the execution steps of a long process need to be graphically displayed. An example of using the Progress Bar is: showing the remaining time of a video or audio file that is currently playing on the Progress Bar, graphically showing the fill rate of a fuel tank using the Progress Bar.

5.2.4 ProgressBar.jpg

5.2.5 ScrollBar

       An object that allows the screen to be scrolled when the design does not fit the screen or when the design screen is to be shifted.

5.2.5 Scrolling Bar.jpg

5.2.6 Gauge

5.2.6 Gauge.jpg

The period range on the scale can be edited from the attributes section for the gauge object.

5.2.6 Other.jpg
5.2.6 Gauge2.jpg

5.2.7 Keys

       An object that you can use as an onscreen keyboard. You can design the keyboard by entering letters, numbers, characters as you want with Caption feature from the attribute section.

5.2.7 Keys.jpg

5.3 VARIABLE

5.3 Varıables.jpg

       Variables take part in the struggle a very important role in situations where the last values of the variables within the code structure or the value in each embodiment of the code are desired not to be lost. As the code structure is generally compiled and restarted every time the Timer is active or when touch-enabled is active in Resistive screen projects, the normal variables generated are reset. This is a major problem for the user when it is desired to use data from the previous location or situation. In order to prevent such a problem, variables come into play. The name of the variables is given in the Attributes section under the heading Name.

       If the type of the variable to be used is Type, then char should be String and numeric value should be Integer. Another feature, Modifiers, Attributes section that we want to use Private (local) or Public (global) should be selected. Local-global distinction is made in projects where multiple screen designs will be used. If the operation is to be performed on a single screen, the Private variable can perform the desired state. However, if you want to use more than one screen, for example, if a value found in the second screen is changed to the first screen, Public (Global) variable should be used here. Below is a description of the use of variables in the code structure.
 

5.3. Code.jpg

Variable:


1. Global or Local
2. String or Integer
3. Set or Get Value Definition
4. Name
5. Variable to retrieve new value or old value


The desired function should be used according to the situation.

int value;
LocalStdVarSet("EVariable1" , “string”); // Set a String variable that is local
GlobalIntVarGet("EVariable2", &value); // Get the global integer variable

5.4 GPIO

       There are 4 different GPIO pins on the AirHMI graphics card for users to use according to their wishes. These pins can be set to INPUT or OUTPUT optionally in projects.
Code structure;

void halGpioSet(unsigned char *pin, unsigned char *value)
halGpioSet( * pinname , *read/write)
halGpioSet(
"GPIO_OUT_1", "Write"); // Real time example code structure
halGpioSet("GPIO_OUT_2", "Read"); // Real time example code structure

it should be this way.

5.5 UART

In the real life of the project, a processor card or ready-made development kits are used. By sending data from the uart output of these cards, operations can be performed on the AirHMI Editor screen according to the data from the UART. The process of receiving data from the UART within the code scheme is performed as shown below.


• The uartDataGet () command is used to retrieve data from UART.

void uartDataGet(char *value , int *uartsize)

char uartData[30]; // The string where data from UART will be stored.
int uartsize; // Size of data from UART

uartDataGet(uartData , &uartsize); //Processing the data from UART

• Printf command is used to send data from UART.

printf("Hello world");
 

5.6 READ&WRITE COMMAND WITH FLASH

       Air HMI LCD Card hardware has 32 Mbyte Flash in order to avoid internal memory problems in the projects and enough space for the files to be uploaded by the user. In addition, basic operations such as loading and reading from flash in PICOC code structure are designed for the data that the user sees important and wants to be saved in any case in cases of sudden power outages or power loss in the code directory. In this way, the user can add the desired data to the internal flash for safe use and store it safely. The process of writing, reading and taking the size of a file in the flash in the code layout is done with the functions below.

 


• Read from Flash
 

void File_write(unsigned char *name , void *buffer ,int size , int nmemb)
 

File_read( the name of the .txt file , the name of the string array , reading size , 1);
 

• Write to Flash
 

void File_read(unsigned char *name , void *buffer , int size , int nmemb)
 

File_write( the name of the .txt file , the name of the string array , the size of the directory to be written , 1);

Example;
Char example[200];
File_write("
Message.txt" , example, sizeof(example), 1);

• Getting File Size Information


void File_size(unsigned char *name , int *size)

File_size( the name of the.txt file, an integer variable);

5.7 DATE AND TIME DISPLAY WITH RTC

      The AirHMI LCD Card hardware has an external RTC integration for use in designs. In this way, you can adjust the time and date settings without any external integration or data and display a date and time information with a Text on the LCD screen. In this system, which is realized for the convenience of the user, the things to be done to get and set the clock data are quite simple. With RTC, date and time settings and usage are done with the codes below.

unsigned char day, month, year, hour, min; // Example Date-Time variables in the code index

dateGet(&day , &month , &year);            // Get date data from the RTC
timeGet(&hour , &min);                     // Get time data from the RTC
dateSet(&day , &month , &year);            // Renew / set up Date data in RTC
timeSet(&hour , &min);                     // Renew / set up Time data in RTC

5.8 AUDIO FILE PLAYBACK

      It is important for the project to report a warning when certain limitations and values are exceeded in industrial projects. The structure of the AirHMI LCD Card, with its structure aiming to meet many needs, provides the opportunity to play an external sound file and to play the warning sounds in itself. The audio output is in the form of PWM signal. After adding the sound request file to the project via AirHMI Editor, the user can play with the code number 1 below. Code structure number 2 is used to play the audio files in itself. Code structures:

• int volume; // Sound level
AudioPlay("NameoftheSoundFile" , &volume );

 

In the AudioPlay function, the name of the audio file that is desired to be played on the first variable, and the second variable should be given the desired sound level between 0-255.


• PlaySound(integerValue);


Prepared warning sounds are installed in the project. It can be selected by typing 1.2, .., 5 into the integerVeger section desired from 5 different warning sounds prepared with PlaySound function.
 

5.9 LCD DISPLAY SCREEN

     The indispensable point for the changes made in the code structure in the projects designed to be seen on the screen is the renewal process of the LCD screen. In order to set the new properties of the objects renewed over the code structure within the prepared project, the screen renewal process should be performed. The user can perform this process by adding the
code located below to the point where the page refresh is desired in the code.


• DrawScreenGet(); // Page refresh command
 

Multiple screen designs can be realized in the project where the user wants to prepare. Switching between pages constitutes an important situation in such designs. It can switch the screen by adding the name of the screen that it wants to switch from the code directory to the code below, in line with the user request.


void ChangeScreenSet(unsigned char *value)
• ChangeScreenSet ("NameofScreentoSwitch");

5.10 PASSIVE SLEEP MODE

       The main purpose of industrial projects is to realize the project design with the most efficient values in terms of time and labor. For this purpose, it is necessary to be careful in the integrations and coding system used in the projects. AirHMI has been designed by considering these issues in LCD Screen design and offers sleep mode support to the user in order to save energy. When the project is actively working, when the image is not required on the LCD screen, the LCD screen will put itself to sleep using the LCDsleep function. In this way, the LCD screen is prevented from drawing extra power while the project is actively working without losing data. In the same way, when the user wants the image to come back on the LCD screen, they can have the screen again using the LCDwakeup function.

• LCDsleep(); // LCD sleep mode activated
• LCDwakeup(); // LCD sleep mode deactivated

 

6. DESIGN LOADING

       There are two options to upload the design created in AirHMI Editor to the device: Run (RAM Mode) and Write to Flash.

6.0 Design Loader.jpg

6.1 Run(RAM Mode)

       During design development, it is used to quickly load the design prepared in its editor and view it on the screen. However, when you cut the power of the device, the design you have installed is also deleted. The advantage over installing in Flash mode is that it loads your design on the device quickly.

6.2 Write to Flash

      The AirHMI LCD Card hardware has 32Mbyte Flash in order to ensure that there is no internal memory problem in the projects and there is enough space for the files to be uploaded by the user. Projects created via AirHMI Editor are uploaded to this template. In addition, the flash memory feature has been added for the data that the user deems important and wants to be recorded in any case in case of sudden power outages or power loss in the code directory. In this way, the user can add the desired data to the internal flash for safe use and store it safely.

6.2 Write to Flash.jpg

When you proceed to the loading of the design on the device, you will see a screen like the figure for both loading methods. You can start the installation by selecting the COM port your device is connected to from the screen that opens. You can also follow the progress of the installation from this screen.

7. FUNCTIONS

       Descriptions of the basic functions used in the code structure in the AirHMI Screen Editor and sample code structure are found under this directory. The parameters that can be changed in the functions related to the objects can be easily understood by looking at the object properties via the AirHMI Screen Editor.

7.1 delay( )

Explanation
It is a command that allows to wait for the specified time in the line it is used.

 


Function


void delay (int ms)

Example Code
#include "stdio.h"
#include "stk.h"


delay(1000);

6.4 Parameter.jpg

7.2 KeyGet ( )

Explanation
       

        It is the command used to inform the user which letter / number is pressed when the Key object is touched. It stores the value printed in keyboard and similar operations in a fixed variable for use elsewhere in the code directory.

 

Function


void KeyGet(unsigned char *value)

 

 

 

 

Example Code


#include "stdio.h"
#include "stk.h"


unsigned char value;
KeyGet(&value);

7.2 keyget.jpg

7.3 ClockSet ( )

Explanation


It is the command that regulates the parameter settings of the clock object.


Function
 

void ClockSet(unsigned char *name , unsigned char *type , unsigned char *value)

 

 

 

 

Example Code

Visible adjustment command
ClockSet ("EImage1" , "Visible" , "1");


Left adjustment command
ClockSet ("Clock1" , "Left" , "10");


Top adjustment command
ClockSet ("Clock1" , "Top" , "255");


Radius adjustment command
ClockSet ("Clock1" , "Radius" , "35");


Color adjustment command
ClockSet ("Clock1" , "Color" , "255");


Press_Color adjustment command
ClockSet ("Clock1" , "Press_Color" , "1745238");


Hour adjustment command
ClockSet ("Clock1" , "Hour" , "23");


Minute adjustment command
ClockSet ("Clock1" , "Minute" , "30");


Flat adjustment command
ClockSet ("Clock1" , "Flat" , "1");


Center adjustment command
ClockSet ("Clock1" , "Center" , "50");


NoSecond adjustment command
ClockSet ("Clock1" , "NoSecond" , "0");


NoBackGround adjustment command
ClockSet ("Clock1" , "NoBackGround" , "1");


NoHands adjustment command
ClockSet ("Clock1" , "NoHands" , "0");


NoTicks adjustment command
ClockSet ("Clock1" , "NoTicks" , "1");


OnDown adjustment command
ClockSet ("Clock1" , "OnDown" , "Clock2_OnDown.c");

OnUp adjustment command
ClockSet ("Clock1" , "OnUp" , "Clock 1_OnUp.c");

7.3 ClockSet.jpg

7.4 GaugeSet ( )

Explanation


It is the command that regulates the parameter settings of the Gauge object.


Function


void GaugeSet(unsigned char *name , unsigned char *type , unsigned char *value)

 

 

 

 

Example Code

Visible adjustment command
GaugeSet ("Gauge1" , "Visible" , "1");


Left adjustment command
GaugeSet ("Gauge1" , "Left" , "10");


Top adjustment command
GaugeSet ("Gauge1" , "Top" , "255");


Radius adjustment command
GaugeSet ("Gauge1" , "Radius" , "35");


Color adjustment command
GaugeSet ("Gauge1" , "Color" , "255");


Press_Color adjustment command
GaugeSet ("Gauge1" , "Press_Color" , "1745238");

Value adjustment command
GaugeSet ("Gauge1" , "Value" , "100");


Range adjustment command
GaugeSet ("Gauge1" , "Range" , "30");


Major_Count adjustment command
GaugeSet ("Gauge1" , "Major_Count" , "10");


Minor_Count adjustment command
GaugeSet ("Gauge1" , "Minor_Count" , "5");


Flat adjustment command
GaugeSet ("Gauge1" , "Flat" , "1");


Center adjustment command
GaugeSet ("Gauge1" , "Center" , "50");


NoBackGround adjustment command
GaugeSet ("Gauge1" , "NoBackGround" , "1");


NoHands adjustment command
GaugeSet ("Gauge1" , "NoHands" , "0");


NoTicks adjustment command
GaugeSet ("Gauge1" , "NoTicks" , "1");

OnDown adjustment command
GaugeSet ("Gauge1" , "OnDown", "Gauge2_OnDown.c");

 

OnUp adjustment command
GaugeSet ("Gauge1" , "OnUp" , "Gauge1_OnUp.c");

7.4 Gauge Set.jpg

7.5 DialSet ( )

Explanation


It is the command that regulates the parameter settings of the Dial object.


Function


void DialSet(unsigned char *name , unsigned char *type , unsigned char *value)

 

 

 

 

Example Code

Visible adjustment command
DialSet("Dial1" , "Visible" , "1");


Left adjustment command
DialSet
("Dial1" , "Left" , "10");


Top adjustment command
DialSet
("Dial1" , "Top" , "255");


Radius adjustment command
DialSet
("Dial1" , "Radius" , "35");


Color adjustment command
DialSet
("Dial1" , "Color" , "255");


Press_Color adjustment command
DialSet
("Dial1" , "Press_Color" , "1745238");

Value adjustment command
DialSet
("Dial1" , "Value" , "100");


Range adjustment command
DialSet
("Dial1", "Range" , "30");


Major_Count adjustment command
DialSet
("Dial1" , "Major_Count" , "10");


Minor_Count adjustment command
DialSet
("Dial1" , "Minor_Count" , "5");


Flat adjustment command
DialSet
("Dial1" , "Flat" , "1");


Center adjustment command
DialSet
("Dial1" , "Center" , "50");


NoBackGround adjustment command
DialSet
("Dial1" , "NoBackGround" , "1");


NoHands adjustment command
DialSet
("Dial1", "NoHands" , "0");


NoTicks adjustment command
DialSet
("Dial1" , "NoTicks" , "1");

OnDown adjustment command
DialSet
("Dial1" , "OnDown", "Gauge2_OnDown.c");

 

OnUp adjustment command
DialSet
("Dial1" , "OnUp" , "Gauge1_OnUp.c");

7.5 DialSet.jpg

7.6 SLIDERSET ( )

Explanation


It is the command that regulates the parameter settings of the Slider object.


Function


void SliderSet(unsigned char *name , unsigned char *type , unsigned char *value)

 

 

 

 

Example Code

Visible adjustment command
SliderSet("Slider1" , "Visible" , "1");


Left adjustment command
SliderSet
("Slider1" , "Left" , "10");


Top adjustment command
SliderSet
("Slider1", "Top" , "255");

Width adjustment command

SliderSet("Slider1", "Width" , "90");

 

Height adjustment command

SliderSet("Slider1", "Height" , "90");


Color adjustment command
SliderSet
("Slider1" , "Color" , "255");


Press_Color adjustment command
SliderSet
("Slider1" , "Press_Color" , "1745238");

Thumb_Color adjustment command

SliderSet("Slider1" , "Thumb_Color" , "65280");

Backround_Color adjustment command

SliderSet("Slider1" , "Backround_Color" , "1458269");

Value adjustment command
SliderSet
("Slider1", "Value" , "100");


Range adjustment command
SliderSet
("Slider1", "Range" , "30");


Flat adjustment command
SliderSet
("Slider1", "Flat" , "1");

OnDown adjustment command
SliderSet
("Slider1" , "OnDown", "Gauge2_OnDown.c");

 

OnUp adjustment command
SliderSet
("Slider1" , "OnUp" , "Gauge1_OnUp.c");

7.6 Slider Set.jpg

7.7 LabelSet ( )

Explanation


It is the command that regulates the parameter settings of the Label object.


Function


void LabelSet(unsigned char *name , unsigned char *type , unsigned char *value)

 

 

 

 

Example Code

Visible adjustment command
LabelSet("Label1" , "Visible" , "1");


Left adjustment command
LabelSet
("Label1" , "Left" , "10");


Top adjustment command
LabelSet
("Label1" , "Top" , "255");

 

FontHandle adjustment command

LabelSet("Label1" , "FontHandle" , "23");

FontName adjustment command

LabelSet("Label1" , "FontName" , "Roboto");


Font_Color adjustment command
LabelSet
("Label1" , "Font_Name" , "16777215");

Caption adjustment command
LabelSet
("Label1" , "Caption" , "Button");


Center adjustment command
LabelSet
("Label1" , "Caption" , "Center");

7.7 LabelSet.jpg

7.8 ToggleSet ( )

Explanation

Toggle is the command that adjusts the parameter settings of its object.


Function

void ToggleSet(unsigned char *name , unsigned char *type , unsigned char *value)
 

 

 

 

 

Example Code

Visible adjustment command
ToggleSet ("Toggle1" , "Visible" , "1");


Left adjustment command
ToggleSet 
("Toggle1" , "Left" , "10");


Top adjustment command
ToggleSet 
("Toggle1" , "Top" , "255");

 

Width adjustment command

ToggleSet ("Toggle1" , "Width" , "90");

State adjustment command

ToggleSet ("Toggle1" , "State" , "1");

StateOffCaption adjustment command

ToggleSet ("Toggle1" , "StateOffCaption" , "No");

 

StateOnCaption adjustment command

ToggleSet ("Toggle1" , "StateOnCaption" , "Yes");


Color adjustment command
ToggleSet 
("Toggle1" , "Color" , "255");


Press_Color adjustment command
ToggleSet 
("Toggle1", "Press_Color" , "1745238");

Backround_Color adjustment command

ToggleSet ("Toggle1" , "Backround_Color" , "1458269");


Flat adjustment command
ToggleSet 
("Toggle1", "Flat" , "1");

OnDown adjustment command
TToggleSet 
("Toggle1" , "OnDown", "Gauge2_OnDown.c");

OnUp adjustment command
ToggleSet 
("Toggle1" , "OnUp" , "Gauge1_OnUp.c");

7.8 ToggleSet.jpg

7.9 ScrollBarSet ( )

Explanation

It is the command that regulates the parameter settings of the Scroll Bar object


Function

void ScrollBarSet(unsigned char *name , unsigned char *type , unsigned char *value)
 

 

 

 

 

Example Code

Visible adjustment command
ScrollBarSet ("ScrollBar1" , "Visible" , "1");


Left adjustment command
ScrollBarSet 
("ScrollBar1" , "Left" , "10");


Top adjustment command
ScrollBarSet 
("ScrollBar1" , "Top" , "255");

 

Width adjustment command

ScrollBarSet ("ScrollBar1" , "Width" , "90");

Height adjustment command

ScrollBarSet ("ScrollBar1" , "Height" , "70");


Color adjustment command
ScrollBarSet 
("ScrollBar1", "Color" , "255");


Press_Color adjustment command
ScrollBarSet 
("ScrollBar1" , "Press_Color" , "1745238");

Range adjustment command

ScrollBarSet ("ScrollBar1", "Range" , "100");

Size adjustment command

ScrollBarSet ("ScrollBar1", "Size" , "20");

value adjustment command

ScrollBarSet ("ScrollBar1", "Value" , "255");

Backround_Color adjustment command

ScrollBarSet ("ScrollBar1" , "Backround_Color" , "1458269");


Flat adjustment command
ScrollBarSet 
("ScrollBar1" , "Flat" , "1");

OnDown adjustment command
ScrollBarSet 
("ScrollBar1", "OnDown", "Gauge2_OnDown.c");

OnUp adjustment command
ScrollBarSet 
("ScrollBar1" , "OnUp" , "Gauge1_OnUp.c");

7.9 ScrollBarSet.jpg

7.10 ProgressBarSet ( )

Explanation

It is the command that regulates the parameter settings of the Progress Bar object


Function

void ProgressBarSet(unsigned char *name , unsigned char *type , unsigned char *value)
 

 

 

 

 

Example Code

Visible adjustment command
ProgressBarSet 
("ProgressBar1" , "Visible" , "1");


Left adjustment command
ProgressBarSet 
("ProgressBar1" , "Left" , "10");


Top adjustment command
ProgressBarSet 
("ProgressBar1" , "Top" , "255");

 

Width adjustment command

ProgressBarSet ("ProgressBar1" , "Width" , "90");

Height adjustment command

ProgressBarSet ("ProgressBar1" , "Height" , "70");


Color adjustment command
ProgressBarSet 
("ProgressBar1", "Color" , "255");


Press_Color adjustment command
ProgressBarSet 
("ProgressBar1", "Press_Color" , "1745238");

Range adjustment command

ProgressBarSet ("ProgressBar1", "Range" , "100");

value adjustment command

ProgressBarSet ("ProgressBar1", "Value" , "255");

Backround_Color adjustment command

ProgressBarSet ("ProgressBar1" , "Backround_Color" , "1458269");


Flat adjustment command
ProgressBarSet 
("ProgressBar1" , "Flat" , "1");

OnDown adjustment command
ProgressBarSet 
("ProgressBar1", "OnDown", "Gauge2_OnDown.c");

OnUp adjustment command
ProgressBarSet 
("ProgressBar1" , "OnUp" , "Gauge1_OnUp.c");

7.10 ProgressBarSet.jpg

7.11 KeySet ( )

Explanation

It is the command that regulates the parameter settings of the Key object.


Function

void KeySet(unsigned char *name , unsigned char *type , unsigned char *value)
 

 

 

 

 

Example Code

Visible adjustment command
KeySet 
("Key1" , "Visible" , "1");


Left adjustment command
KeySet
 ("Key4" , "Left" , "10");


Top adjustment command
KeySet
 ("Key7" , "Top" , "255");

 

Width adjustment command

KeySet ("Key1" , "Width" , "90");

Height adjustment command

KeySet ("Key4" , "Height" , "70");


Color adjustment command
KeySet
 ("Key7", "Color" , "255");

ColorTo adjustment command

KeySet ("Key1", "ColorTo" , "65280");


Press_Color adjustment command
KeySet
 ("Key7", "Press_Color" , "1745238");

Max_Lenght adjustment command

KeySet ("Key4", "Max_Lenght" , "1458269");

FontHandle adjustment command

KeySet ("Key1", "FontHandle" , "23");

FontName adjustment command

KeySet ("Key7", "FontName" , "Roboto");

Caption adjustment command

KeySet ("Key4", "Caption" , "Button");

OnDown adjustment command
KeySet
 ("Key4", "OnDown", "Gauge2_OnDown.c");

OnUp adjustment command
KeySet
 ("Key4" , "OnUp" , "Gauge1_OnUp.c");

7.11 KeySet ( ).jpg

7.12 ButtonSet ( )

Explanation

It is the command that regulates the parameter settings of the button object


Function

void ButtonSet(unsigned char *name , unsigned char *type , unsigned char *value)