6static const char *
const TAG =
"uln2003.stepper";
11 return LOG_STR(
"FULL STEP");
13 return LOG_STR(
"HALF STEP");
15 return LOG_STR(
"WAVE DRIVE");
17 return LOG_STR(
"UNKNOWN");
51 " Sleep when done: %s",
53 LOG_PIN(
" Pin A: ", this->
pin_a_);
54 LOG_PIN(
" Pin B: ", this->
pin_b_);
55 LOG_PIN(
" Pin C: ", this->
pin_c_);
56 LOG_PIN(
" Pin D: ", this->
pin_d_);
57 ESP_LOGCONFIG(TAG,
" Step Mode: %s", LOG_STR_ARG(step_mode_to_log_string(this->
step_mode_)));
61 auto i =
static_cast<uint32_t
>((step % n + n) % n);
68 res |= 1 << ((i + 1) % 4);
74 res |= 1 << (((i + 1) >> 1) & 0x3);
BedjetMode mode
BedJet operating mode.
virtual void digital_write(bool value)=0
void stop()
Stop running the loop continuously.
void start()
Start running the loop continuously.
bool has_reached_target()
ULN2003StepMode step_mode_
void write_step_(int32_t step)
HighFrequencyLoopRequester high_freq_
void dump_config() override
@ ULN2003_STEP_MODE_HALF_STEP
@ ULN2003_STEP_MODE_FULL_STEP
@ ULN2003_STEP_MODE_WAVE_DRIVE