diff --git a/config.h b/config.h new file mode 100644 index 0000000..16d103b --- /dev/null +++ b/config.h @@ -0,0 +1,29 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#define BAUDRATE (9600) + +// Pins +#define PIN_PB0 (8) +#define PIN_PD6 (6) +#define PIN_PD7 (7) +#define PIN_PD3 (3) +#define PIN_PB1 (9) +#define PIN_PB2 (10) +#define PIN_PD4 (4) +#define PIN_PD2 (2) +#define PIN_MOSI (11) + +#define PIN_X_PULSE (PIN_PB0) +#define PIN_X_ENABLE (PIN_PD6) +#define PIN_X_DIRECTION (PIN_PD7) +#define PIN_X_HOME (PIN_PD3) + +#define PIN_Y_PULSE (PIN_PB2) +#define PIN_Y_ENABLE (PIN_PB1) +#define PIN_Y_DIRECTION (PIN_MOSI) +#define PIN_Y_HOME (PIN_PD4) + +#define PIN_LASER (PIN_PD2) + +#endif