Hi, I’m trying to attaching LVGL and MAX31865 with same SPI pin with different CS. but as soon as i initate both feacture, it does not works.
ESP32 Wrover-E
Arduino 2.3.2
MAX31865
IL9341
LVGL 9.0
#define CS0_PIN 15 // TFT Module CS
#define CS1_PIN 27 // MAX31865 Modules CS
.....
Adafruit_MAX31865 thermo0 = Adafruit_MAX31865(CS1_PIN, MOSI_PIN, MISO_PIN, SCLK_PIN);
void setup()
{
.....
pinMode(CS0_PIN, OUTPUT);
pinMode(CS1_PIN, OUTPUT);
thermo0.begin(MAX31865_3WIRE);
lv_init();
.....
}
void loop()
{
digitalWrite(CS0_PIN, LOW);
digitalWrite(CS1_PIN, HIGH);
lv____task();
digitalWrite(CS0_PIN, HIGH);
digitalWrite(CS1_PIN, LOW);
max31865____task();
}
CS0_PIN pin also, set in the user_setup.h of TFTP_eSPI.
Whatever i changed HIGH/LOW or pinmode to OUTPUT/INPUT it does not works. Yes, sure it works in the separate mode. anyone knows how to share the CS mode ? thanks in advance.
BR
HS