7 static const char *
const TAG =
"x9c.output";
10 if (change_amount == 0) {
14 if (change_amount > 0) {
23 for (
int i = 0; i < abs(change_amount); i++) {
37 ESP_LOGCONFIG(TAG,
"Setting up X9C Potentiometer with initial value of %f", this->
initial_value_);
67 ESP_LOGCONFIG(TAG,
"X9C Potentiometer Output:");
68 LOG_PIN(
" Chip Select Pin: ", this->
cs_pin_);
69 LOG_PIN(
" Increment Pin: ", this->
inc_pin_);
70 LOG_PIN(
" Up/Down Pin: ", this->
ud_pin_);
72 ESP_LOGCONFIG(TAG,
" Step Delay: %d", this->
step_delay_);
73 LOG_FLOAT_OUTPUT(
this);
virtual void digital_write(bool value)=0
InternalGPIOPin * ud_pin_
InternalGPIOPin * inc_pin_
virtual uint8_t get_pin() const =0
void dump_config() override
void trim_value(int change_amount)
InternalGPIOPin * cs_pin_
Implementation of SPI Controller mode.
void IRAM_ATTR HOT delayMicroseconds(uint32_t us)
void write_state(float state) override