Closed minkione closed 4 years ago
@minkione
As shown in the code below, did you specify SPI to initialize it?
#include "FS.h"
#include "SD.h"
#include <SPI.h>
SPIClass SPI1(HSPI);
#define MY_CS 15
#define MY_SCLK 25
#define MY_MISO 26
#define MY_MOSI 27
void setup()
{
SPI1.begin(MY_SCLK, MY_MISO, MY_MOSI, MY_CS);
//Assuming use of SPI SD card
if (!SD.begin(MY_CS, SPI1)) {
Serial.println("Card Mount Failed");
} else {
Serial.println("DEU CERTO INICIAR SD CARD");
}
}
26,27 has been used, can not be used 26,27, you need to replace the pin
In a SPI bus... there could be multiple slaves connected to the same MISO and MOSI and SCK. What is important is to have a different CSN for each slave...
That means that 26 and 27 must be used for both devices connected to the SPI bus.
Sorry, I thought you had another board, I made a mistake. I will briefly test it later.
No problem :) Actually after playing a bit I managed to get it work the CC1101. But when I try to use BOTH CC1101 and the TFT Display... it fails badly to compile.
I have tried using the SD card and everything is working, the code and README have been updated @minkione
Thanks anyway. I already opted for a MEGA2560 with a 3.2" TFT.... That had proper documentation a month ago...
I am trying to get working a CC1101 with my T-Display. Someone suggested to device the following pins as SPI for teh connection between the T-Display and the NRF24... MISO: 27 MOSI: 26 SCK: 25 CSN: 33 GDO0: 2 GDO2: 37 But it still doesn't work.
Anyone has some suggestions?