Home
last modified time | relevance | path

Searched refs:m_dcMotors (Results 1 – 2 of 2) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/src/adafruitms1438/
Dadafruitms1438.cxx103 m_dcMotors[0] = (DC_PINMAP_T){ 8, 10, 9 }; in setupPinMaps()
104 m_dcMotors[1] = (DC_PINMAP_T){ 13, 11, 12 }; in setupPinMaps()
105 m_dcMotors[2] = (DC_PINMAP_T){ 2, 4, 3 }; in setupPinMaps()
106 m_dcMotors[3] = (DC_PINMAP_T){ 7, 5, 6 }; in setupPinMaps()
125 m_pca9685->ledFullOff(m_dcMotors[motor].pwm, false); in enableMotor()
130 m_pca9685->ledFullOff(m_dcMotors[motor].pwm, true); in disableMotor()
157 m_pca9685->ledFullOn(m_dcMotors[motor].pwm, false); in setMotorSpeed()
160 m_pca9685->ledOffTime(m_dcMotors[motor].pwm, int(4095.0 * percent)); in setMotorSpeed()
173 m_pca9685->ledFullOn(m_dcMotors[motor].in1, true); in setMotorDirection()
174 m_pca9685->ledFullOff(m_dcMotors[motor].in1, false); in setMotorDirection()
[all …]
Dadafruitms1438.h243 DC_PINMAP_T m_dcMotors[4]; variable