21 lines
304 B
C++
21 lines
304 B
C++
#ifndef _MOTION_H__
|
|
#define _MOTION_H__
|
|
#include <Arduino.h>
|
|
|
|
class Motion
|
|
{
|
|
public:
|
|
void init();
|
|
void run(int cmd);
|
|
void speed(int LevelSpeed);
|
|
void turn(int nums);
|
|
void open();
|
|
void close();
|
|
void left();
|
|
void right();
|
|
void straight();
|
|
void backOff();
|
|
};
|
|
|
|
#endif
|