Elektroda.com
Elektroda.com
X

Search our partners

Find the latest content on electronic components. Datasheets.com
Elektroda.com

Video tutorial displays NEXTION

ekrzychoooo 22470 237
This content has been translated » The original version can be found here
  • ekrzychoooo
    Level 17  
    One picture. With the xpic command, you cut and display what you currently need.
  • ekrzychoooo
    Level 17  
    In the project, insert the same picture that you put here (containing all cases of progress bar).
    With the xpic command you can cut a fragment out of this image and display it on the screen. The xpic command can be used locally in the LCD or sent from eg arduino (sendcommand ("....")).
  • Jarzabek666
    Level 35  
    It cannot be done, it would have to be ala gif ... and 100 images are almost 90% of the memory, unless you reach for it are the more complex nextions ...
  • ekrzychoooo
    Level 17  
    You absolutely must have every 1%? I think that, as you showed in the previous picture, every 10% for a pest is not bad.
  • kuba2509
    Level 13  
    Hello

    The first time I have to use this display, the project I want to copy is: http: //souliss.net/articles/DST/ I made the project and it works great but.
    In the project in the HMI file there are words in some exotic language I would like to change them. So I ask colleagues with more experience whether it can be done in Nextion Editor, or do I have to design the HMI file from scratch.

    best regards
  • Jarzabek666
    Level 35  
    If you have the .HMI file, it can be changed so much, unfortunately the author does not provide the source code for the display anymore or it does not find it ...
  • ekrzychoooo
    Level 17  
    I don't see any exotics in the display design itself. Paste the screen where you can see it.
  • kuba2509
    Level 13  
    Hello

    On "page 1" upper left corner.
    On "page 2 and 3" everything in some language I don't know, probably Italian.
  • Jarzabek666
    Level 35  
    To change that, you would have to edit the image and change it. Export from the project the picture and the piant or something else is bowing ...
  • kuba2509
    Level 13  
    Approx.
    thanks for the hints i will try to do it.

    Added after 3 [hours] 24 [minutes]:

    Hello
    I took pictures in the right resolution and I had no problem with pasting them to the "picture" on the bottom left in Nextion Editor, so I have no problem with pasting them to the "page" on the right at the top.
    What am I doing wrong?
  • ekrzychoooo
    Level 17  
    Parameter sta in settings page you pass there image
    Parameter drink in settings page there you enter the index of the image
  • kuba2509
    Level 13  
    Thank you for your help I managed to change it.
    best regards
  • ekrzychoooo
    Level 17  
    Good morning
    I need help. Someone could open the hmi file at home. There is one TextSelect element in the project and it causes NextionEditor to hang during compilation.
    I wanted to check if this only happens on my PC.
    TEST2.ZIP Download (16.59 MB)
  • kaino
    Level 12  
    ekrzychoooo wrote:
    Good morning
    I need help. Someone could open the hmi file at home. There is one TextSelect element in the project and it causes NextionEditor to hang during compilation.
    I wanted to check if this only happens on my PC.


    I will go classic, I can see that you are combining with the new display
  • ekrzychoooo
    Level 17  
    kaino wrote:
    I will go classic, I can see that you are combining with the new display

    Well, if I change the drag attribute to yes, it hangs when compiling.
    I am using version V1.61.2 on Win7
  • ekrzychoooo
    Level 17  
    On the new editor.

    Added after 1 [minutes]:

    OK thanks. I will try to reinstall.
  • doran5
    Level 6  
    Hello.
    I have the screen as you can see.
    At the bottom I have a numeric field n7, a text field t7 and a button that changes the type of timer with the code:
    Code:

    n7.val+=1
    if(n7.val>4)
    {
      n7.val=1
    }
    if(n7.val==1)
    {
      t7.txt="monostab: 0 na 1"
    }
    if(n7.val==2)
    {
      t7.txt="monostab: 1 na 0"
    }
    if(n7.val==3)
    {
      t7.txt="generator od 0"
    }
    if(n7.val==4)
    {
      t7.txt="generator od 1"
    }



    There is also a timer on the page which after loading the page updates the string t7 according to the value of the numeric field n7 after loading the page
    Code:
    Code:

    // ładuje opisy
    if(n7.val==1)
    {
      t7.txt="monostab: 0 na 1"
    }
    if(n7.val==2)
    {
      t7.txt="monostab: 1 na 0"
    }
    if(n7.val==3)
    {
      t7.txt="generator od 0"
    }
    if(n7.val==4)
    {
      t7.txt="generator od 1"
    }
    //////////////////////////////////
    if(n6.val==1)
    {
      t6.txt="tranzystor"
    }
    if(n6.val==2)
    {
      t6.txt="triak"
    }
    if(n6.val==3)
    {
      t6.txt="przekaŸnik"
    }
    if(n6.val==4)
    {
      t6.txt="beep"
    }

    Video tutorial displays NEXTION
    As I change the value in the first two X-type fields using any keyboard, the value of the generator type is reset to zero. (this also applies to the type of output)
    The question is where is the cause.
  • ekrzychoooo
    Level 17  
    I showed it in one of the films (local vs global, I think).
    The keyboard is the next screen and on returning from it all local variables are cleared and the global ones remain unchanged
  • doran5
    Level 6  
    Thanks, I'm only sitting in it for the 3rd day but it's still cool because the previous screen was 1000 lines on the UTF library.
    Sometimes, as always, he writes faster than I think and read.
    Greetings to AS