Nextion - need a lamp

Hi

calling @PerryBebbington !!

I'm using a basic Nextion display . On the GUI I want a "lamp" that I can change colour under control of my arduino code. Might be missing the obvious here but, I'm unsure how to do this and cant see a suitable item in the toolbox- I don't want a button that I change from the touch screen ,this is just to be and indicator to show the status ,say, of an arduino input.

how do I do this with the Nextion GUI configuration. ??

I'm not using the Arduino library.

thx.

Hello Paul,

I suggest a button, you can change its colour using serial commands. Just because it's a button doesn't mean it has to actually work as a button, just don't put anything against it under the touch press and touch release events, then it won't do anything when touched.

In fact there are probably other objects that would work as long as you can change the background colour.

Thx !