Skip to content
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

When i try to upload file in my Ardunio mega i get error #115

Open
Akshar062 opened this issue May 4, 2024 · 0 comments
Open

When i try to upload file in my Ardunio mega i get error #115

Akshar062 opened this issue May 4, 2024 · 0 comments

Comments

@Akshar062
Copy link

`In file included from C:\Users\hp-akshar\AppData\Local\Temp.arduinoIDE-unsaved202444-3532-uxs9m8.5dk7q\Upload\Upload.ino:1:0:
d:\Ardunio\libraries\ITEADLIB_Arduino_Nextion-master/NexUpload.h:20:10: fatal error: SD.h: No such file or directory
#include <SD.h>
^~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1`

here is my code

#include <Nextion.h>    
NexDSButton bt1 = NexDSButton(0,3,"bt1"); // Scan Btn
NexDSButton bt0 = NexDSButton(0,2,"bt0"); // Calibration Btn


NexTouch *nex_listen_list[]{
  &bt1,
  &bt0,
  NULL
};

void bt1PushCallback(void *ptr){

  Serial.print("S");
  Serial.print("Scan button pressed");

}

void bt0PushCallback(void *ptr){

  Serial.print("C");
  Serial.print("Calibration button pressed");

}


void setup(){
  Serial.begin(9600);
  delay(500);
  Serial.print("baud=115200");
  Serial.write(0xff);
  Serial.write(0xff);
  Serial.write(0xff);

  Serial.end();
  Serial.begin(115200);

  bt1.attachPush(bt1PushCallback);
  bt0.attachPush(bt0PushCallback);

}

void loop(){
  nexLoop(nex_listen_list);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant