32 #define PF_Commmand 0x41 34 #define PF_Channel 0x42 35 #define PF_Channel_1 1 36 #define PF_Channel_2 2 37 #define PF_Channel_3 3 38 #define PF_Channel_4 4 40 #define PF_Control 0x43 41 #define PF_Control_Both 0 42 #define PF_Control_A 1 43 #define PF_Control_B 2 45 #define PF_Speed_A 0x45 46 #define PF_Speed_B 0x47 47 #define PF_Speed_Slow 1 48 #define PF_Speed_Medium 4 49 #define PF_Speed_Full 7 51 #define PF_Operation_A 0x44 52 #define PF_Operation_B 0x46 53 #define PF_Operation_Float 0 54 #define PF_Operation_Forward 1 55 #define PF_Operation_Reverse 2 56 #define PF_Operation_Brake 3 58 #include "EVShieldI2C.h" 76 void controlMotor(uint8_t channel, uint8_t contol, uint8_t operation, uint8_t speed);
bool setOperationB(uint8_t operation)
Definition: EVs_PFMate.cpp:62
void controlMotor(uint8_t channel, uint8_t contol, uint8_t operation, uint8_t speed)
Definition: EVs_PFMate.cpp:77
uint8_t issueCommand(char command)
Definition: EVs_PFMate.cpp:37
bool setSpeedB(uint8_t speed)
Definition: EVs_PFMate.cpp:72
bool setSpeedA(uint8_t speed)
Definition: EVs_PFMate.cpp:67
EVs_PFMate(uint8_t i2c_address=0x48)
Definition: EVs_PFMate.cpp:33
bool setChannel(uint8_t channel)
Definition: EVs_PFMate.cpp:47
This class implements I2C interfaces used by EVShield.
Definition: EVShieldI2C.h:32
bool sendSignal()
Definition: EVs_PFMate.cpp:42
bool setOperationA(uint8_t operation)
Definition: EVs_PFMate.cpp:57
This class interfaces with PFMate attached to EVShield.
Definition: EVs_PFMate.h:63
bool setControl(uint8_t contol)
Definition: EVs_PFMate.cpp:52