31constexpr uint32_t kPPR = 12;
32constexpr uint32_t kReductionRation = 90;
34#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
65 printf(
"setting up\n");
67 g_encoder_motor_0.Init();
68 g_encoder_motor_0.RunPwmDuty(1023);
69 printf(
"setup completed\n");
73 const auto rpm = g_encoder_motor_0.SpeedRpm();
76 "[%lu] RPM: %d . The phase of A leads B. Constructed with the em::EncoderMotor::PhaseRelation::kAPhaseLeads "
82 "[%lu] RPM: %d . The phase of B leads A. Constructed with the em::EncoderMotor::PhaseRelation::kBPhaseLeads "
87 printf(
"The motor is not running currently.\n");
@ kAPhaseLeads
Represents the situation where phase A leads phase B when the motor is rotating forward.
String Version()
Get the version number string.