use atmega32 to control stepper motors

Signed-off-by: Stepan Usatyuk <usaatyuk@ustk.me>
This commit is contained in:
2019-05-16 14:36:40 +03:00
parent c7299e7916
commit a96a47f0f9
26 changed files with 513 additions and 200 deletions

View File

@@ -0,0 +1,33 @@
#ifndef COMMANDS_H
#define COMMANDS_H
enum command{
unk,
G00,
G01,
M99,
};
enum bcAxis{
X = 1,
Y = 2,
Z = 3,
};
enum I2CMessage {
WAIT,
NEXT,
};
enum StatusMSG {
servoRot,
eggRot,
servoPos,
eggPos,
penPos,
};
void bytesToFloat(float *target, byte *val);
void floatToBytes(byte *target, float val);
#endif