- Mensajes: 2
- Gracias recibidas: 0
Aviso
El foro está en modo de sólo lectura.
librería oficial de nextion
- Alex
- Autor del tema
- Fuera de línea
- Navegador Iniciado
Menos
Más
6 años 4 meses antes #976
por Alex
librería oficial de nextion Publicado por Alex
Hola todos: Soy nuevo en el foro y el tema de las pantallas nextion y la verdad tengo muy poco dandoles. Alguien pudiese ayudarme:
Ayer descargue el codigo del tutorial 3 del sitio de cambatronics y tambien tengo la librería oficial de nextion segun los tutoriales con respecto a las librerias oficiales. Tengo una placa de arduino mega 2560, cuando compilo el progrtama me despliega este error:
Arduino:1.8.5 (Windows 7), Tarjeta:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
dual_state_button:20: error: 'NexDSButton' does not name a type
NexDSButton bt0 = NexDSButton(0, 2, "bt0"); // Creamos el objeto bt0.
^
dual_state_button:25: error: 'bt0' was not declared in this scope
&bt0,
^
D:\arduinos librerias y algo mas\de nextion codigos\nextion_ lib_ofi#3\dual_state_button\dual_state_button.ino: In function 'void bt0PopCallback(void*)':
dual_state_button:32: error: 'bt0' was not declared in this scope
bt0.getValue(&dual_state); // Recuperamos valor del dual state button.
^
D:\arduinos librerias y algo mas\de nextion codigos\nextion_ lib_ofi#3\dual_state_button\dual_state_button.ino: In function 'void setup()':
dual_state_button:42: error: 'bt0' was not declared in this scope
bt0.attachPop(bt0PopCallback, &bt0); // registramos la llamada a la funcion del evento pop del boton de doble estado.
^
exit status 1
'NexDSButton' does not name a type
Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
Alguien sabe que pasa?
Ayer descargue el codigo del tutorial 3 del sitio de cambatronics y tambien tengo la librería oficial de nextion segun los tutoriales con respecto a las librerias oficiales. Tengo una placa de arduino mega 2560, cuando compilo el progrtama me despliega este error:
Arduino:1.8.5 (Windows 7), Tarjeta:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
dual_state_button:20: error: 'NexDSButton' does not name a type
NexDSButton bt0 = NexDSButton(0, 2, "bt0"); // Creamos el objeto bt0.
^
dual_state_button:25: error: 'bt0' was not declared in this scope
&bt0,
^
D:\arduinos librerias y algo mas\de nextion codigos\nextion_ lib_ofi#3\dual_state_button\dual_state_button.ino: In function 'void bt0PopCallback(void*)':
dual_state_button:32: error: 'bt0' was not declared in this scope
bt0.getValue(&dual_state); // Recuperamos valor del dual state button.
^
D:\arduinos librerias y algo mas\de nextion codigos\nextion_ lib_ofi#3\dual_state_button\dual_state_button.ino: In function 'void setup()':
dual_state_button:42: error: 'bt0' was not declared in this scope
bt0.attachPop(bt0PopCallback, &bt0); // registramos la llamada a la funcion del evento pop del boton de doble estado.
^
exit status 1
'NexDSButton' does not name a type
Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
Alguien sabe que pasa?
- Jose Luis
- Fuera de línea
- Navegador Platino
Menos
Más
- Mensajes: 620
- Karma: 6
- Gracias recibidas: 68
6 años 4 meses antes #979
por Jose Luis
Respuesta de Jose Luis sobre el tema librería oficial de nextion
Cuando instalas la libreria tambien se instala una documentacion. Ve a documentos/arduino/libreries y si has instalado la ultima version de las librerias de itead, tiene que aparecer una carpeta llamada ITEADLIB_arduino_nextion_0.7.0
Dentro de esa carpeta hay la dicuementacion, librerias, ejemplos y demas.
Pero, sigo pensando, que no tienes cargadas las ultimas librerias.
Dentro de esa carpeta hay la dicuementacion, librerias, ejemplos y demas.
Pero, sigo pensando, que no tienes cargadas las ultimas librerias.
- sarkochile
- Fuera de línea
- Navegador Iniciado
Menos
Más
- Mensajes: 3
- Gracias recibidas: 0
6 años 1 mes antes #1245
por sarkochile
Respuesta de sarkochile sobre el tema librería oficial de nextion
Hola José Luis.
Actualmente tengo la libreria ITEADLIB_Arduino_Nextion-master, que descargue hace unas semanas.
figura como versión 0.9.0
Por lo que me arroja el mismo error que Alex.
Será que esta librería eliminó algunas funciones?
Gracias.
Actualmente tengo la libreria ITEADLIB_Arduino_Nextion-master, que descargue hace unas semanas.
figura como versión 0.9.0
Por lo que me arroja el mismo error que Alex.
Será que esta librería eliminó algunas funciones?
Gracias.
- Jose Luis
- Fuera de línea
- Navegador Platino
Menos
Más
- Mensajes: 620
- Karma: 6
- Gracias recibidas: 68
6 años 1 mes antes - 6 años 1 mes antes #1247
por Jose Luis
Respuesta de Jose Luis sobre el tema librería oficial de nextion
Verifica si tienes dos carpetas dentro del directoria de librerias de arduino.
Una seria a version 0.9.0 del la librerias y en la otra debe poner Arduino_nextion_master
Cuando pasa eso es que falta una de las dos.
Una seria a version 0.9.0 del la librerias y en la otra debe poner Arduino_nextion_master
Cuando pasa eso es que falta una de las dos.
Última Edición: 6 años 1 mes antes por Jose Luis.
- sarkochile
- Fuera de línea
- Navegador Iniciado
Menos
Más
- Mensajes: 3
- Gracias recibidas: 0
6 años 1 mes antes #1250
por sarkochile
Respuesta de sarkochile sobre el tema librería oficial de nextion
Gracias por la respuesta José Luis.
Efectivamente tenía sólo una librería.
Reintalé el arduino y la librería ITEADLIB_Arduino_Nextion-0.7.0 y al compilar me arroja el mismo error:
nextiostato:17: error: 'Nextion' does not name a type
Nextion myNextion(nextion, 9600);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setup()':
nextiostato:26: error: 'myNextion' was not declared in this scope
myNextion.init();
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void loop()':
nextiostato:37: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
nextiostato:42: error: 'myNextion' was not declared in this scope
if (myNextion.getComponentValue("page0.bt0")) setSubir();
^
nextiostato:43: error: 'myNextion' was not declared in this scope
if (myNextion.getComponentValue("page0.bt1")) setBajar();
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void imprimeNextion()':
nextiostato:51: error: 'myNextion' was not declared in this scope
myNextion.setComponentText("page0.t1",temperatura);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setSubir()':
nextiostato:74: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setBajar()':
nextiostato:79: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
exit status 1
'Nextion' does not name a type
Al instalar tambien la librería ITEADLIB_Arduino_Nextion-master se suma al final el siguiente texto:
Se encontraron múltiples librerías para "Nextion.h"
Usado: C:\Users\Sarkochile\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master
No usado: C:\Users\Sarkochile\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-0.7.0
Se encontraron múltiples librerías para "SD.h"
Usado: C:\Users\Sarkochile\Documents\Arduino\libraries\SD
No usado: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
'Nextion' does not name a type
Al usar solo la librería ITEADLIB_Arduino_Nextion-master entrega este error:
nextiostato:17: error: 'Nextion' does not name a type
Nextion myNextion(nextion, 9600);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setup()':
nextiostato:26: error: 'myNextion' was not declared in this scope
myNextion.init();
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void loop()':
nextiostato:37: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
nextiostato:42: error: 'myNextion' was not declared in this scope
if (myNextion.getComponentValue("page0.bt0")) setSubir();
^
nextiostato:43: error: 'myNextion' was not declared in this scope
if (myNextion.getComponentValue("page0.bt1")) setBajar();
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void imprimeNextion()':
nextiostato:51: error: 'myNextion' was not declared in this scope
myNextion.setComponentText("page0.t1",temperatura);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setSubir()':
nextiostato:74: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setBajar()':
nextiostato:79: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
Se encontraron múltiples librerías para "SD.h"
Usado: C:\Users\Sarkochile\Documents\Arduino\libraries\SD
No usado: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
'Nextion' does not name a type
Ya en este punto, me confundí...
Un abrazo y gracias¡¡
Efectivamente tenía sólo una librería.
Reintalé el arduino y la librería ITEADLIB_Arduino_Nextion-0.7.0 y al compilar me arroja el mismo error:
nextiostato:17: error: 'Nextion' does not name a type
Nextion myNextion(nextion, 9600);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setup()':
nextiostato:26: error: 'myNextion' was not declared in this scope
myNextion.init();
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void loop()':
nextiostato:37: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
nextiostato:42: error: 'myNextion' was not declared in this scope
if (myNextion.getComponentValue("page0.bt0")) setSubir();
^
nextiostato:43: error: 'myNextion' was not declared in this scope
if (myNextion.getComponentValue("page0.bt1")) setBajar();
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void imprimeNextion()':
nextiostato:51: error: 'myNextion' was not declared in this scope
myNextion.setComponentText("page0.t1",temperatura);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setSubir()':
nextiostato:74: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setBajar()':
nextiostato:79: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
exit status 1
'Nextion' does not name a type
Al instalar tambien la librería ITEADLIB_Arduino_Nextion-master se suma al final el siguiente texto:
Se encontraron múltiples librerías para "Nextion.h"
Usado: C:\Users\Sarkochile\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master
No usado: C:\Users\Sarkochile\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-0.7.0
Se encontraron múltiples librerías para "SD.h"
Usado: C:\Users\Sarkochile\Documents\Arduino\libraries\SD
No usado: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
'Nextion' does not name a type
Al usar solo la librería ITEADLIB_Arduino_Nextion-master entrega este error:
nextiostato:17: error: 'Nextion' does not name a type
Nextion myNextion(nextion, 9600);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setup()':
nextiostato:26: error: 'myNextion' was not declared in this scope
myNextion.init();
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void loop()':
nextiostato:37: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
nextiostato:42: error: 'myNextion' was not declared in this scope
if (myNextion.getComponentValue("page0.bt0")) setSubir();
^
nextiostato:43: error: 'myNextion' was not declared in this scope
if (myNextion.getComponentValue("page0.bt1")) setBajar();
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void imprimeNextion()':
nextiostato:51: error: 'myNextion' was not declared in this scope
myNextion.setComponentText("page0.t1",temperatura);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setSubir()':
nextiostato:74: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
C:\Users\Sarkochile\Downloads\Nextion y arduino\DHT22_Nextion\nextiostato\nextiostato.ino: In function 'void setBajar()':
nextiostato:79: error: 'myNextion' was not declared in this scope
myNextion.setComponentValue("page0.n0",setPoint);
^
Se encontraron múltiples librerías para "SD.h"
Usado: C:\Users\Sarkochile\Documents\Arduino\libraries\SD
No usado: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
'Nextion' does not name a type
Ya en este punto, me confundí...
Un abrazo y gracias¡¡
- Jose Luis
- Fuera de línea
- Navegador Platino
Menos
Más
- Mensajes: 620
- Karma: 6
- Gracias recibidas: 68
6 años 1 mes antes #1251
por Jose Luis
Respuesta de Jose Luis sobre el tema librería oficial de nextion
Tiempo de carga de la página: 0.148 segundos