Search found 2 matches

by Gusti_made
Fri Dec 15, 2023 9:37 am
Forum: ESP-IDF
Topic: Basic read LSM6D33 accelerometer via SPI using ESP32-C3 luatos
Replies: 2
Views: 14553

Re: Basic read LSM6D33 accelerometer via SPI using ESP32-C3 luatos

spi_transaction_t t; memset(&t, 0, sizeof(t)); t.flags = SPI_TRANS_USE_TXDATA | SPI_TRANS_USE_RXDATA; t.length = 8; t.tx_data[0] = LSM6DS33_READ_CMD | reg; This implicitly performs an 8-bit 'full-duplex' transaction, i.e. 8 bits are sent and at the same time 8 bits are received, which then is the d...
by Gusti_made
Thu Dec 14, 2023 9:54 am
Forum: ESP-IDF
Topic: Basic read LSM6D33 accelerometer via SPI using ESP32-C3 luatos
Replies: 2
Views: 14553

Basic read LSM6D33 accelerometer via SPI using ESP32-C3 luatos

Hello, I'm a beginner at SPI protocol, I want to read LSM6D33 accelerometer data, and start reading WHO_AM_I register, here is the datasheet https://www.mouser.com/datasheet/2/389/lsm6ds33-1849769.pdf , and here is datasheet of ESP32-C3 luatos esp32C3-CORE https://wiki.luatos.org/chips/esp32c3/board...