feat: add IO and PINS definitions
This commit is contained in:
parent
3c1380296d
commit
1c7cdc2f1f
29
config.h
Normal file
29
config.h
Normal file
|
|
@ -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
|
||||||
Loading…
Reference in a new issue