 |
SimpleFOClibrary
2.1
|
Go to the documentation of this file.
46 pinMode(
pwm1A, OUTPUT);
47 pinMode(
pwm1B, OUTPUT);
48 pinMode(
pwm2A, OUTPUT);
49 pinMode(
pwm2B, OUTPUT);
65 float duty_cycle1A(0.0),duty_cycle1B(0.0),duty_cycle2A(0.0),duty_cycle2B(0.0);
void _configure4PWM(long pwm_frequency, const int pin1A, const int pin1B, const int pin2A, const int pin2B)
float voltage_limit
limiting voltage set to the motor
#define _constrain(amt, low, high)
int enable_pin2
enable pin number phase 2
void _delay(unsigned long ms)
int pwm2B
phase 2B pwm pin number
long pwm_frequency
pwm frequency value in hertz
void _writeDutyCycle4PWM(float dc_1a, float dc_1b, float dc_2a, float dc_2b, int pin1A, int pin1B, int pin2A, int pin2B)
#define DEF_POWER_SUPPLY
default power supply voltage
int pwm2A
phase 2A pwm pin number
StepperDriver4PWM(int ph1A, int ph1B, int ph2A, int ph2B, int en1=NOT_SET, int en2=NOT_SET)
int pwm1B
phase 1B pwm pin number
float voltage_power_supply
power supply voltage
void setPwm(float Ua, float Ub) override
int pwm1A
phase 1A pwm pin number
int enable_pin1
enable pin number phase 1