mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 08:47:49 +01:00
use atmega32 to control stepper motors
Signed-off-by: Stepan Usatyuk <usaatyuk@ustk.me>
This commit is contained in:
33
Firmware/common/Commands.h
Normal file
33
Firmware/common/Commands.h
Normal 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
|
||||
Reference in New Issue
Block a user