Nextion Display and KD8CEC firmware

Ian KD8CEC is working on a protocol to allow Nextion LCD touch displays to communicate with the µBITx.

He is implementing this a little differently to most support for Nextion LCDs.

The firmware will handle communication between the uBITX arduino and Nextion LCD using template files.

There are quite a few variables in the Nextion LCD. If the status of any parameters in the uBITX changes, the variables sent to the Nextion LCD will also be changed at the same time (and vice-versa).  This should allow any Nextion display and any configuration of the display’s User Interface to interact with the µBITx.  This means constructors can customise their µBITx display using the Windows GUI used with the Nextion to configure the “look and feel”.

For example, when uBITX’s frequency changes, it is transferred to a specific variable on Nextion LCD.

Example code

 

Below is an example of simple frequency and mode display changes

 

//Frequency

if(vc.val!=-1)

{

nFreq.val=vc.val

vc.val=-1

}

//Mode

if(cc.val!=-1)

{

if(cc.val==2)

{

tMainMode.txt=”LSB”

}

else

{

    tMainMode.txt=”USB”

}

cc.val=-1

}

Reference

3 Replies to “Nextion Display and KD8CEC firmware”

  1. Within days (according to http://www.hamskey.com the CEC firmware will support any Nextion display in theory. There is a resizing to be done to support displays other than 2.4″, 2.8″ and 3.2″ in size. It is possible to do this yourself, but it takes a bit of effort to get to know how to use the Nextion software for Windows. No coding is required. Do you have a 7″ display?

    73 Mike ZL1AXG

Comments are closed.