-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GIVE THIS ERROR #1
Comments
Can you please tell me how you declare and how you call the trigger() function if you can? |
#include <callTriggers.h> EasyNex myNex(Serial); // Data wire is plugged into digital pin 2 on the Arduino byte zero = 0x00; //workaround for issue #527 //char buffer[100] = {0}; // Pass oneWire reference to DallasTemperature library char buffer[100] = {0}; //DICHIARAZIONE COMPONENTI NEL NEXTION void setup(void) if (! rtc.isrunning()) { setDateTime(); } } void Temperaturasondatonextion(){ float t = sensors.getTempCByIndex(0); } void printDate(){ // Reset the register pointer Wire.requestFrom(DS1307_ADDRESS, 7); int second = bcdToDec(Wire.read()); //print the date EG 3/1/11 23:59:59 char orario[30]; // } void setDateTime(){ byte second = 00; //0-59 Wire.beginTransmission(DS1307_ADDRESS); Wire.write(decToBcd(second)); Wire.write(zero); //start Wire.endTransmission(); } byte decToBcd(byte val){ byte bcdToDec(byte val) { void trigger2(){ } } //FUNZIONE LOOP-RIPETE void loop(void) //delay(1000); //printDate(); } |
I have try to remove lines 16,17,18 in EasyNextionLibrary.cpp and it seems work... |
Now,othre problem... page0 --> Picture click(printh 23 02 54 02): } page1 --> Picture click(printh 23 02 54 03): } CAN YOU HELP ME ? |
#include <callTriggers.h> |
Library calls the |
void trigger2(){
myNex.writeStr("t0.txt", "P"); //(t0.txt in in same page)
} As I saw, the command is correctly written, which means that the t0.txt will become "P". What you also must check is that the send component id is not checked, because if they are, they are going to send unwanted commands over Serial.
Please give me a feedback as soon as possible. |
Yes,in the code i no have comment.(//myNex.writeStr("t0.txt", "P");(t0.txt in in same page)). I did some tests, and "myNex.writeStr (" tp0Temp.txt "," H ");" it works only if the page with the "tp0Temp.txt" component is open. void trigger3 () { First I go to the page where the component is, and then I change the text. |
Well as I wrote you above:
myNex.writeStr("page0.t0.txt", "HELLO") // same for Number
myNex.writeNum("page0.n1.val", number); if you don't need something else for this issue you can close it. |
libraries\EasyNextionLibrary\EasyNextionLibrary.cpp.o (symbol from plugin): In function `EasyNex::callTriggerFunction()':
(.text+0x0): multiple definition of `EasyNex::callTriggerFunction()'
sketch\ARFTHERM.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
The text was updated successfully, but these errors were encountered: