BrickUp API Service for Docker version.

FR_DCMotor.h 286B

12345678910111213141516171819
  1. #ifndef FR_DCMotor_h
  2. #define FR_DCMotor_h
  3. #include "Arduino.h"
  4. class FR_DCMotor
  5. {
  6. public:
  7. FR_DCMotor(byte pinF,byte pinR);
  8. void rotate(char dir, byte speed);
  9. void rotate(char dir);
  10. private:
  11. byte _pinF;
  12. byte _pinR;
  13. void init();
  14. };
  15. #endif