15 " Reference Voltage: %.2fV",
17 LOG_PIN(
" CS Pin:", this->
cs_);
21 const uint8_t command = (1 << 6) |
22 ((differential ? 0 : 1) << 5) |
26 alignas(4) uint8_t
buffer[3] = {command, 0x00, 0x00};
void dump_config() override
float get_setup_priority() const override
float read_data(uint8_t pin, bool differential)
void spi_setup() override
void transfer_array(uint8_t *data, size_t length)
ESPHOME_LOG_TAG(TAG, "mcp3204")
constexpr float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
constexpr uint16_t encode_uint16(uint8_t msb, uint8_t lsb)
Encode a 16-bit value given the most and least significant byte.