![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
This is a very simple guide, reviewing the steps required to get Blinky working on an Mbed OS platform.
Dependencies: mbed Adafruit_GFX
Drive.h
- Committer:
- ParkChunMyong
- Date:
- 2019-06-13
- Revision:
- 96:7465ab270e7a
- Parent:
- 95:250afd53b710
File content as of revision 96:7465ab270e7a:
#ifndef __DRIVE_H__ #define __DRIVE_H__ #include "mbed.h" #define HIGH 1 #define LOW 0 class Drive{ private: PwmOut _pwmA; PwmOut _pwmB; DigitalOut _AIN1; DigitalOut _AIN2; DigitalOut _BIN1; DigitalOut _BIN2; int left_Speed; int right_Speed; public: Drive(PinName pwmA, PinName pwmB, PinName Ain1, PinName Ain2, PinName Bin1, PinName Bin2); ~Drive(); void Forward(); void Backward(); void Turn_left(); void Turn_right(); void Break(); void setSpeed(int speed); void setSpeed(int speed1, int speed2); }; #endif