From 1c7cdc2f1f9b88a85f57d1836752792e37fbfe5e Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 5 Jun 2025 10:43:04 +0200 Subject: [PATCH] feat: add `IO` and `PINS` definitions --- config.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 config.h 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