Hi to all
i have one 2.2" TFT display with ILi9341 driver
i used the Adafruit libraries and worked fine ( as i am using an arduino nano 5v logic i used some 1k resistors in series with the pinout , until get a mail order with level shifters boards)
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
// For the Adafruit shield, these are the default.
#define TFT_DC 9
#define TFT_CS 10
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
as a reset pin i am using the RST pin of the Arduino board
i add a Mcp2515 CanBus module that uses SPI connection also
#include <mcp_can.h>
#include <SPI.h>
MCP_CAN CAN0(8); // Set CS to pin 10
i changed the the default cs pin to pin 8 so not sharing the same pin as the TFT display
pins for CSk (13) Mosi(11) Miso(12) is the same as the TFT
The problem is that when i add the Mcp2515 module the tft stop working ( bright white screen)
i thought that the SPI could be used with more than one device just needed one gpio more for each device (cs)
does these TFTs screens need any special treatment when sharing the same SPI ?
is just problem with the resistors ? maybe when i use level shifters the problem fixed ? (ok this is more a guess question for someone maybe had the same problem and fixed it like this)
Ps : the can module work fine when i am connecting it

