Guten Tag,
ich brauche Hilfe von euch ich komme hier nicht mehr weiter!
Ich bekomme jedes Mal die Fehlermeldung
C:\Users\Manuel\Desktop\arduino-1.8.5\examples\manuel123\manuel123.ino: In function 'void loop()':
manuel123:33: error: 'class Nextion' has no member named 'listen'
String message = myNextion.listen(); //check for message
^
manuel123:37: error: 'class Nextion' has no member named 'buttonToggle'
myNextion.buttonToggle(button1State, "b0", 0, 2);
^
manuel123:47: error: 'class Nextion' has no member named 'buttonToggle'
myNextion.buttonToggle(button2State, "b1", 0, 2);
^
Mehrere Bibliotheken wurden für "SoftwareSerial.h" gefunden
Benutzt: C:\Users\Manuel\Desktop\arduino-1.8.5\hardware\arduino\avr\libraries\SoftwareSerial
Nicht benutzt: C:\Users\Manuel\Documents\Arduino\libraries\SoftwareSerial-master
Mehrere Bibliotheken wurden für "Nextion.h" gefunden
Benutzt: C:\Users\Manuel\Documents\Arduino\libraries\NeoNextion
Nicht benutzt: C:\Users\Manuel\Documents\Arduino\libraries\ITEADLIB_Arduino_Nextion-master
exit status 1
'class Nextion' has no member named 'listen'
Mein code
#include <SoftwareSerial.h>
#include <Nextion.h>
SoftwareSerial nextion(2, 3);// Nextion TX to pin 2 and RX to pin 3 of Arduino
Nextion myNextion(nextion, 9600); //create a Nextion object named myNextion using the nextion serial port @ 9600bps
boolean button1State;
boolean button2State;
void setup() {
Serial.begin(9600);
myNextion.init(); // send the initialization commands for Page 0
pinMode (6, OUTPUT);
digitalWrite(6, HIGH); //Einschalten
}
void loop() {
String message = myNextion.listen(); //check for message
///---------------------------------------------------
if (message == "65 2 1 1 ffff ffff ffff") {
myNextion.buttonToggle(button1State, "b0", 0, 2);
digitalWrite(6, LOW); //Und wieder ausschalten
}
///---------------------------------------------------
//---------------------------------------------------
if (message == "65 2 2 1 ffff ffff ffff") {
myNextion.buttonToggle(button2State, "b1", 0, 2);
digitalWrite(6, HIGH); //An dieser Stelle würde das Relais einsschalten
}
///---------------------------------------------------
}