7 static const char *
const TAG =
"adc128s102";
12 ESP_LOGCONFIG(TAG,
"Setting up adc128s102");
17 ESP_LOGCONFIG(TAG,
"ADC128S102:");
18 LOG_PIN(
" CS Pin:", this->
cs_);
22 uint8_t control = channel << 3;
29 uint16_t digital_value = adc_primary_byte << 8 | adc_secondary_byte;
void spi_setup() override
uint8_t transfer_byte(uint8_t data)
float get_setup_priority() const override
uint16_t read_data(uint8_t channel)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Implementation of SPI Controller mode.
void dump_config() override