Aviso

El foro está en modo de sólo lectura.

Arduino UNO and Nextion

Más
7 años 3 días antes #795 por gvardal
Respuesta de gvardal sobre el tema Arduino UNO and Nextion
Sorry still same led pin always on, and botonMarcha returns aways true value, can you send me your Nextion.h file
Más
7 años 3 días antes #796 por Jose Luis
Respuesta de Jose Luis sobre el tema Arduino UNO and Nextion
github.com/bborncr/nextion

but if the program that sends you compiles well, the problem will not be the libraries.
Can you tell us how you have the cables connected between the screen and the arduino?

   have you tried if the serial port of the Nextion works?
Más
7 años 3 días antes #797 por gvardal
Respuesta de gvardal sobre el tema Arduino UNO and Nextion
When i try to compile program firstly ide shows following messages

C:\Program Files (x86)\Arduino\libraries\nextion-master\Nextion.cpp: In member function 'unsigned int Nextion::getComponentValue(String)':

C:\Program Files (x86)\Arduino\libraries\nextion-master\Nextion.cpp:131:25: warning: left shift count >= width of type

value = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]);//Little-endian convertion

^

C:\Program Files (x86)\Arduino\libraries\nextion-master\Nextion.cpp:131:43: warning: left shift count >= width of type

value = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]);//Little-endian convertion

^

Çalışmanız programın 5932 bayt (18 %) saklama alanını kullandı. Maksimum 32256 bayt.
Global değişkenler belleğin 343 byte kadarını (16%) kullanıyor. Yerel değişkenler için 1705 byte yer kalıyor. En fazla 2048 byte kullanılabilir.

then i try to compile again it disappears
and i connecting Nextion with Arduino with wires like same as yours
but how can i correct SoftwareSerial works or not
Más
7 años 3 días antes #798 por gvardal
Respuesta de gvardal sobre el tema Arduino UNO and Nextion
I add the following code into Void Setup

void setup() {//***************************************setup***********************************************
pinMode(ledStatus, OUTPUT);
digitalWrite(ledStatus, LOW);
Serial.begin(9600);
myNextion.init(); // INICIALIZA Y VA A LA PRIMERA PAGINA
if (myNextion.init())
{
Serial.println("Nextion is connected");
}
else
{
Serial.println("Nextion is NOT connected");
}
}
and it writes "Nextion is NOT connected"
Más
7 años 3 días antes #799 por Jose Luis
Respuesta de Jose Luis sobre el tema Arduino UNO and Nextion
You can not make mistakes by compiling the program that I send you.
Notice that you have selected the correct arduino model.
Install the libraries I told you before.
And when you compile, I can not make mistakes.

The arduino code and the screen are verified and work OK.

Verify that this works for you before making any changes to the code.
Más
7 años 3 días antes #800 por gvardal
Respuesta de gvardal sobre el tema Arduino UNO and Nextion
I checked in IDE, Arduino/Genuino Uno selected.
I paste library into C:\Program Files (x86)\Arduino\libraries folder
and nothing change in Nextion.h file
so but program does not work on my arduino
what can i do
Tiempo de carga de la página: 0.199 segundos
Gracias a Foro Kunena