|
HF-BNO08x
0.1.0-dev
|
I2C bus and device configuration structure. More...
#include <esp32_bno08x_bus.hpp>
Public Attributes | |
| i2c_port_t | port = I2C_NUM_0 |
| I2C port number. | |
| gpio_num_t | sda_pin = GPIO_NUM_4 |
| SDA pin (default GPIO4, same as pcal95555/pca9685) | |
| gpio_num_t | scl_pin = GPIO_NUM_5 |
| SCL pin (default GPIO5, same as pcal95555/pca9685) | |
| uint32_t | frequency = 400000 |
| I2C frequency in Hz (default 400kHz) | |
| uint8_t | device_address |
| 7-bit I2C device address (default 0x4B, SA0=HIGH; 0x4A if SA0=LOW) | |
| bool | pullup_enable = true |
| Enable internal pullups. | |
| gpio_num_t | int_pin = GPIO_NUM_17 |
| Interrupt pin (default GPIO17, GPIO_NUM_NC if not used) | |
| gpio_num_t | rst_pin = GPIO_NUM_16 |
| Reset pin (default GPIO16, GPIO_NUM_NC if not used) | |
I2C bus and device configuration structure.
| uint8_t Esp32Bno08xI2cBus::I2CConfig::device_address |
7-bit I2C device address (default 0x4B, SA0=HIGH; 0x4A if SA0=LOW)
| uint32_t Esp32Bno08xI2cBus::I2CConfig::frequency = 400000 |
I2C frequency in Hz (default 400kHz)
| gpio_num_t Esp32Bno08xI2cBus::I2CConfig::int_pin = GPIO_NUM_17 |
Interrupt pin (default GPIO17, GPIO_NUM_NC if not used)
| i2c_port_t Esp32Bno08xI2cBus::I2CConfig::port = I2C_NUM_0 |
I2C port number.
| bool Esp32Bno08xI2cBus::I2CConfig::pullup_enable = true |
Enable internal pullups.
| gpio_num_t Esp32Bno08xI2cBus::I2CConfig::rst_pin = GPIO_NUM_16 |
Reset pin (default GPIO16, GPIO_NUM_NC if not used)
| gpio_num_t Esp32Bno08xI2cBus::I2CConfig::scl_pin = GPIO_NUM_5 |
SCL pin (default GPIO5, same as pcal95555/pca9685)
| gpio_num_t Esp32Bno08xI2cBus::I2CConfig::sda_pin = GPIO_NUM_4 |
SDA pin (default GPIO4, same as pcal95555/pca9685)