Start a new topic

* Grammatical Errors, and Document Corrections

Please report Grammatical Errors and Document corrections below.

I will delete them from the list when they are confirmed to be corrected.


When uploading new firmware via SD card, you'll get a "successed" message which should rather be "successful" or "succeeded".


1 person likes this

Corrections are shown with red text on yellow background:

Nextion Instruction Set:


https://www.itead.cc/wiki/Nextion_Instruction_Set#if:_if_statement

Example 2:

if(b0.txt==”start”)
{    
  b0.txt=”stop”  
} else
{ 
  b0.txt=”start”  
}

Example 3:

if(b0.txt==”1”)
{    
  b0.txt=”2”  
} else if(b0.txt==”2”)  // <<<< Remove spaces
{ 
  b0.txt=”3”  
}else
{ 
  b0.txt=”1”
}


https://www.itead.cc/wiki/Nextion_Instruction_Set#add:_Add_data_to_waveform_component

add objid,ch,val  // <<<< Remove spaces

Example 1:

add 1,0,30  // <<<< Remove spaces

Example 2:

add 1,1,50  // <<<< Remove spaces


https://www.itead.cc/wiki/Nextion_Instruction_Set#addt:_Add_data_to_waveform_component_in_volume

addt objid,ch,qty  // <<<< Remove spaces

Example:

add 1,0,100  // <<<< Remove spaces

.

Corrections are shown with red text on yellow background:

Nextion Instruction Set:


https://www.itead.cc/wiki/Nextion_Instruction_Set#Nextion_HMI:_System_Variables_List

1. dim:

1.dim=50 2.dim=dim+10 3.dim=dim-10


2. dims:

1.dims=50 2.dims=dims+10 3.dims=dims-10


7. thc:

1.thc=RED 2.thc=1024


8. thdra:

thdra=0(Close) thdra=1(Open)


12. sendxy:

sendxy=0(Close) sendxy=1(Open)


13. delay:

Delay=100(Pause the device for 100ms)


14. sleep:

sleep=1 (Enter Sleep)


15. bkcmd:

bkcmd=1 (Only return the successful data)


17. sys0 sys1 sys2:

sys0, sys1, sys2 are global variables, which do not require to be defined or created.


.

Scrolling Text Object attribute in Nextion Editor

.tim attribute has descriptor Interval time in ms.(8 to 65535)

Minimum value before it is accepted is 80.

Maximum value before it is accepted is 65534

Nextion Instruction Set:


https://www.itead.cc/wiki/Nextion_Instruction_Set#for:_for_statemet

for: for statement

for(n0.val=0;n0.val<100;n0.val++)


https://www.itead.cc/wiki/Nextion_Instruction_Set#line_x.2C_y.2C_x2.2C_y2.2C_color

line x,y,x2,y2,color

line 0,0,100,100,RED


I keep staggering when reading "lenth" - supposedly should be "length". Unfortunately that will break older code using the text length attribute.

Hi Michael ...

length in a programming language will be an actual command of any useful compiler.   I have to imagine the lenth attribute falls between partial artistic licence - trying to avoid compiler command and command used by the firmware interpreter.


But I get what you mean.

Too many times I misspell that one correctly and have to delete the g

AJ Kool created topic on Sun, 8 Jan at 6:04 AM


 Dear Sirs,


Just some issues I found in the documentation. Please correct the examples op page https://www.itead.cc/wiki/Nextion_Instruction_Set.

Some commands are written with spaces between the variables (or constants).

But spaces are not accepted. example:

3.6 fill x, y, w, h, color

3.7 line x, y, x2, y2, color

3.8 draw x, y, x2, y2, color

3.9 cir x, y, r, color

3.10 cirs x, y, r, color


click b0, 1

add 1, 0, 30

addt 1, 0, 100 etc.


There is no statement that the commands are both for programming and communication.

Nextion Instruction Set:

https://www.itead.cc/wiki/Nextion_Instruction_Set#add:_Add_data_to_waveform_component

(Nextion Editor version 0.46)

Add by variable:

- add 1,0,n0.val

- add 1,0,va0.val 

- add 1,0,sys0


Login or Signup to post a comment