Hi All,
I have a project called "RunCPM" (https://github.com/MockbaTheBorg/RunCPM) which emulates a Z80 CP/M computer on an Arduino DUE (with SD Card shield).
Right now the code lines which refer to the SD card on this project are:
#include <SPI.h>
#include <SD.h>
#define SDcs 4 // Pin for the SD chip select signal
pinMode(SDcs, OUTPUT);
digitalWrite(SDcs, LOW);
if (SD.begin(SDcs)) {
I was expecting to migrate this project to the Teensy 3.5 (or 3.6, I have both) by just changing the SDcs pin definition, however this doesn't seem to be the case.
Right now I have Arduino 1.6.11 and the latest 1.31 Teensyduino.
When I build the code I see a message saying:
Multiple libraries were found for "SD.h"
Used: C:\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Arduino\libraries\SD
So I am guessing the right SD library is being used.
I have tried changing from 4 to BUILTIN_SDCARD among other things I saw online, but I am unable to initialize the SD card.
Am I missing something?
Changing from this to that SD library is not an option, and I don't see a reason to do it, as the project works fine with the default SD library (on the DUE).
Is there a "step-by-step" tutorial on how to migrate SD access from regular Arduino to the Teensy 3.(5/6)? I couldn't find a clear solution on Google, so I figured I would ask it here.
Thanks in advance for any help.
Thanks,
Marcelo "Mockba" Dantas.
I have a project called "RunCPM" (https://github.com/MockbaTheBorg/RunCPM) which emulates a Z80 CP/M computer on an Arduino DUE (with SD Card shield).
Right now the code lines which refer to the SD card on this project are:
#include <SPI.h>
#include <SD.h>
#define SDcs 4 // Pin for the SD chip select signal
pinMode(SDcs, OUTPUT);
digitalWrite(SDcs, LOW);
if (SD.begin(SDcs)) {
I was expecting to migrate this project to the Teensy 3.5 (or 3.6, I have both) by just changing the SDcs pin definition, however this doesn't seem to be the case.
Right now I have Arduino 1.6.11 and the latest 1.31 Teensyduino.
When I build the code I see a message saying:
Multiple libraries were found for "SD.h"
Used: C:\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Arduino\libraries\SD
So I am guessing the right SD library is being used.
I have tried changing from 4 to BUILTIN_SDCARD among other things I saw online, but I am unable to initialize the SD card.
Am I missing something?
Changing from this to that SD library is not an option, and I don't see a reason to do it, as the project works fine with the default SD library (on the DUE).
Is there a "step-by-step" tutorial on how to migrate SD access from regular Arduino to the Teensy 3.(5/6)? I couldn't find a clear solution on Google, so I figured I would ask it here.
Thanks in advance for any help.
Thanks,
Marcelo "Mockba" Dantas.