|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Simple I2C bus scanner for the OLED UI board wiring. More...
#include <cinttypes>#include <cstdio>#include "driver/i2c_master.h"#include "esp_err.h"#include "esp_log.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "tmc51x0.hpp"Functions | |
| static esp_err_t | scan_address (i2c_master_bus_handle_t bus, uint8_t addr, TickType_t timeout_ticks, uint32_t freq_hz) |
| static void | scan_at_frequency (i2c_master_bus_handle_t bus_handle, uint32_t freq_hz) |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "I2C_SCAN" |
| static constexpr i2c_port_t | I2C_PORT = I2C_NUM_0 |
| static constexpr gpio_num_t | I2C_SDA_PIN = GPIO_NUM_5 |
| static constexpr gpio_num_t | I2C_SCL_PIN = GPIO_NUM_23 |
| static constexpr uint32_t | I2C_FREQ_FAST = 400000 |
| static constexpr uint32_t | I2C_FREQ_STD = 100000 |
Simple I2C bus scanner for the OLED UI board wiring.
Uses the same pins as the fatigue_test_espnow_ui app to probe all 7-bit addresses (0x03-0x77) and logs any devices that acknowledge.
| void app_main | ( | void | ) |
|
static |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |