Power it off then remove the SD card and power it on again. Insert this SD card into Nextion LCD and power it on.Click on file->open build folder->copy this Visuino tft file into your fat32 formatted SD card.This will cause x->555 on display screen. A new window will pop up under "instruction input area" window enter-> t0.txt="555". You can also debug or run this in simulator by clicking on debug tab.Click on compile tab (this will generate tft file).Now you should add 4 more text components to display roll, pitch, and yaw text also by repeating the above procedure.Place them one below the other by dragging them on screen. Similarly repeat the process of adding two more text component t1, t2.Now click on its attribute table sta->crop image pic->double click->choose picture 0 pco->choose cyan color txt->x Now from toolbox window: click on text component -> t0 new text will appear on the display.This will be used as the background of the interface. Now you will see that white screen becomes black in color. Now click on its attribute table (right hand bottom corner) click on sta->select imagepic->double click->select picture 0 (black wallpaper). In the display window the white screen will appear.The black wallpaper will appear in the picture window as picture 0. Now in Nextion editor add the black wallpaper to the picture window (left bottom corner window) by clicking on + button.Now we have generate fonts: tool->font generator->follow the wizard and select the generated font.Display area will have a white 320*240 editable screen.CLICK new project->name it as Visuino ->device tab->choose nx3224t028_011 display->90 horizontal->character encoding ->ASCII. Make sure that you install 1.6.7 higher, otherwise this Tutorial will not work! Please be aware that there are some critical bugs in Arduino IDE 1.6.6.Make sure you have generated font otherwise Nextion editor will show error in compiling. In the final version of the project I added image with the Visuino logo on it. Optionally you can also add your own background image for the display.Make sure you have a plain black wallpaper of 320*240 size.Make sure you have a fat32 formatted SD card.
0 Comments
Leave a Reply. |