Skip to content

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

@Akshar062

Description

@Akshar062

`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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions