Hi
I have done some changes of the example code of the flexcan_t4 library. First I have installed the 3.5 display. This works very good. After the installing of the onboard SD card I have some problems with the display.
I think there is a problem with the CS pin. Basically the SD card work without the display.
The display has the CS pin 10. Is it possible that the SD Card (const int chipSelect = BUILTIN_SDCARD also use the CS pin 10?
Both (display and SD card) needs to be updated while receiving messages.
How can I fix the problem.
I use a circuit board from skpang and I think I have no option to change the CS pin from the display.
#include <FlexCAN_T4.h>
FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_64> can3;
#include <isotp.h>
isotp<RX_BANKS_16, 512> tp;
#include <Adafruit_GFX.h>
#include "ILI9488_t3.h"
#include "ili9488_t3_font_Arial.h"
#include <Adafruit_FT6206.h>
#include <SD.h>
#include <SPI.h>
// The FT6206 uses hardware I2C (SCL/SDA)
Adafruit_FT6206 ts = Adafruit_FT6206();
#define TFT_CS 10
#define TFT_DC 9
ILI9488_t3 display = ILI9488_t3(&SPI, TFT_CS, TFT_DC);
const int chipSelect = BUILTIN_SDCARD;
int LCD_RESET = 15;
int LCD_BL = 14;
Thanks a lot
Gary
I have done some changes of the example code of the flexcan_t4 library. First I have installed the 3.5 display. This works very good. After the installing of the onboard SD card I have some problems with the display.
I think there is a problem with the CS pin. Basically the SD card work without the display.
The display has the CS pin 10. Is it possible that the SD Card (const int chipSelect = BUILTIN_SDCARD also use the CS pin 10?
Both (display and SD card) needs to be updated while receiving messages.
How can I fix the problem.
I use a circuit board from skpang and I think I have no option to change the CS pin from the display.
#include <FlexCAN_T4.h>
FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_64> can3;
#include <isotp.h>
isotp<RX_BANKS_16, 512> tp;
#include <Adafruit_GFX.h>
#include "ILI9488_t3.h"
#include "ili9488_t3_font_Arial.h"
#include <Adafruit_FT6206.h>
#include <SD.h>
#include <SPI.h>
// The FT6206 uses hardware I2C (SCL/SDA)
Adafruit_FT6206 ts = Adafruit_FT6206();
#define TFT_CS 10
#define TFT_DC 9
ILI9488_t3 display = ILI9488_t3(&SPI, TFT_CS, TFT_DC);
const int chipSelect = BUILTIN_SDCARD;
int LCD_RESET = 15;
int LCD_BL = 14;
Thanks a lot
Gary