Start a new topic

does val support float

Can I do the below in Nextion ? I want to add the value 0.1 to n0.val each time a key is pressed.

 

if(n0.val<30)
{
  n0.val=n0.val+0.1
}


Floats are NOT supported

if(n0.val<300)
{
  n0.val=n0.val+1
}

 


G.

OK, but how can I print this as a float on the nextion display ?

 

maybe the first step to do this is learn programming?  :-)

 

G.

HMI

:)

Login or Signup to post a comment