You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and greetings. I tried the library using with ESP32S3, but unfortunately the library did not working at all T__T.
I tried Parallel/SPI/16bit all failed to get any reading. I did using other library found on the internet, managed to get some readings from SPI...
The text was updated successfully, but these errors were encountered:
The spi example using ESP32S3 works I tested last week, but you gotta be really careful with the spi functions in the cpp file. Here's the code I modified.
// ESP32S3 PICO SPI2
SPIClass SPI2(HSPI);
//
AD7606_SPI::AD7606_SPI(int MISO, int MOSI, int SCK, int CS, int CONVSTA, int CONVSTB, int BUSY, int RESET)
{
_RESET = RESET;
pinMode(_RESET,OUTPUT);
_CS = CS;
pinMode(_CS,OUTPUT);
_CONVSTA = CONVSTA;
pinMode(_CONVSTA,OUTPUT);
_CONVSTB = CONVSTB;
pinMode(_CONVSTB,OUTPUT);
_BUSY = BUSY;
digitalWrite(_CS, 0);
digitalWrite(_CONVSTA, 0);
digitalWrite(_CONVSTB, 0);
digitalWrite(_RESET, 0);
SPI2.begin(SCK,MISO,MOSI,CS);
SPI2.beginTransaction(SPISettings(20000000, MSBFIRST, SPI_MODE2));
//SPI2.setBitOrder(SPI_MSBFIRST);
//SPI2.setClockDivider(0x2000);
//SPI2.setDataMode(SPI_MODE3);
reset();
};
And using SPI2 in the other related functions like AD7606_SPI::read etc.
Hello and greetings. I tried the library using with ESP32S3, but unfortunately the library did not working at all T__T.
I tried Parallel/SPI/16bit all failed to get any reading. I did using other library found on the internet, managed to get some readings from SPI...
The text was updated successfully, but these errors were encountered: