• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

SD card

Q&A Forum › Category: Questions › SD card
0 Vote Up Vote Down
marcjeanvandenbril asked 2 years ago

Hello everyone,
I have a lot of trouble writing my own code.
I use models (RNTs for example) which I tinker with with varying degrees of success.
Recently, one of my “SD card” models using the mySD.h library gave a compilation error which I ended up solving by replacing before setup()
File dataFile; by
ext::File dataFile;
Can you explain to me ?
Many thanks in advance

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Does that happen in all examples? Or just one particular example?
Regards,
Sara

0 Vote Up Vote Down
marcjeanvandenbril answered 2 years ago

Hi,
in all examples using the mySD.h library
Regards,
 
Marc

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
I’m afraid we don’t use the mySD.h library in any of our tutorials.
What specific examples are you following?
Regards,
Sara

0 Vote Up Vote Down
marcjeanvandenbril answered 2 years ago

Hi,
Good morning,
Using SD cards has always caused me a lot of trouble. At the same time I use TFT displays which also use (v)SPI communication. I achieved this by using the mySD.h library which makes the h(SPI) port easily accessible.
I tried to do the same thing with the SD.h library and your article (https://randomnerdtutorials.com/esp32-spi-communication-arduino/#more-113804) but it doesn’t work. It’s true that you do not use mySD.h in your articles. I didn’t realize it.
Regards,
 
Marc

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Great. Thanks for the explanation.
Unfortunately, I haven’t tried that library before. So, I’m not sure exactly how it works.
REgards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.