DISPLAY WILL NOT WORK ALONGSIDE SD

Hi,
I have multiple tabs within this code. The code is for a display and for data logging to an SD card. But, when I add in the line " if (!card.init(SPI_HALF_SPEED, chipSelect)){ " the display stops showing the correct values and instead shows 0.00 .
here is my code (not in full, just the card.h tab)

// code for SD card
#include <SD.h>
#include <SPI.h>
#include "setting.h"



Sd2Card card;
SdVolume volume;
SdFile root;

const char chipSelect=(10,11,12,13);
 

void setup2() {

    
    
    Serial.print("\nInitializing SD card...");
    pinMode(53, OUTPUT);
 if (!card.init(SPI_HALF_SPEED, chipSelect)){           // This line stops display working
    Serial.println("initialization failed. Things to check:");
    Serial.println("* is a card inserted?");
    Serial.println("* is your wiring correct?");
    Serial.println("* did you change the chipSelect pin to match your shield or module?");
   
    return;
 } else {                                                  
  Serial.println("Wiring is correct and a card is present.");
  return;
 }




 
  }

It would be great if anyone could help me get the display and SD working alongside eachother,
Thank you

const char chipSelect=(10,11,12,13);

strange..

Some SD-readers doesn't release MI. This can cause problems

If you really want help:

  1. press ctrl-T to format your code nicely.
  2. ZIP up your multi-tab project i.e. the project directory
  3. attach the ZIP file.

This applies to any coding problem. It takes you 1 minute to provide the complete information.
A small sketch can be pasted to a CODE window in your message.
A long sketch or multiple-tab sketch is better as an attachment.

David.

Ok, some code might be commercially sensitive.
Or teachers do not want you to post a school assignment.

In which case you create a minimal program that exhibits your problem.

From knut_ny's reply in #1 you have a lot to learn.

Hint.

const char chipSelect=(10,11,12,13);
  1. does it even compile?
  2. what value does it assign to chipSelect ?

David.