Closed Yasshion closed 7 months ago
one can supply a spare SPI bus as an argument: for begin() method:
Sorry, I have fixed it, please try againThe example passes the SPI object by default, but HSPI has been initialized as the SD card in the initBoard function, so for QMI, HSPI needs to be used for communication. This was my mistake. It has been fixed now.
Thank you, both of you it works now
@Yasshion
Thank you, both of you it works now
Once you are happy - would you mind to close this ticket, please ?
Solved, then I will close the issue
Hi,
I try to run the sample (QMI8658_WakeOnMotion) but it never works to use the QMI8658 over the Wire bus. Over SPI it works but not over I2C. Can you please provide me an example how to use the QMI with Wire?
Kind Regards, Hannes
I uncomment the #define USE_WIRE and use the following to attach the QMI:
//Using WIRE !!
if (!qmi.begin(Wire, QMI8658_L_SLAVE_ADDRESS, SPI_MOSI, SPI_SCK)) {
Serial.println("Failed to find QMI8658 - check your wiring!");
while (1) {
delay(1000);
}
}
PowerKeyPressOffTime:4 Second Started OLED setupSDCard FAIL Failed to find QMI8658 - check your wiring!
@Bitbanger1900 On t-beam-s3, QMI is only connected to SPI, and I2C cannot be used.
Hi,
may i ask how Yasshion and you solved this with the SPI Bus Lora/QMI with an example? When QMI is working and i add an SPIClass with HSPI to start the LORA, QMI stops working as if there is always an SPI Bus conflict. Sometimes it works but after a powercycle most of the time not.
Hello, im trying to use both lora and qmi on t-beam s3 supreme board, i had to disable the spi lora in the initboard function in order to make the QMI8658_GetDataExample work
void initBoard() { Serial.begin(115200); Serial.println("initBoard"); //SPI.begin(RADIO_SCLK_PIN, RADIO_MISO_PIN, RADIO_MOSI_PIN);
if i commented this line of code then qmi works
ifdef I2C1_SDA
endif
... } in the end i want to use lora as well but when i activate lora
this line of code fails is there a possible solution for it? Because s3 has 4 spi and in the utilities.h radiospi and spi is suppose to be two different spi i think, if it not ill try to define a new spi for it any other way can you help me to fix this issue?
Thank you.