The display is configured with Nextion Editor.
It is a simple tool to drag and drop buttons and things like that.
And then you assign what should happen when the different objects is being pushed.
In this simple example I am just sending 1,2 or 3 from the different buttons on the display.