aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorElias Naur <[email protected]>2024-01-23 11:15:55 -0500
committerRon Evans <[email protected]>2024-01-23 21:04:22 +0100
commit45764325b4d3496d75c7d5f09044b09009101029 (patch)
treeab45ae32a1497eae9b66d813e6a6c1b8dcdb5dd9
parentbb66232164a5f839d142dbb6d947716ac81b2bea (diff)
downloadtinygo-45764325b4d3496d75c7d5f09044b09009101029.tar.gz
tinygo-45764325b4d3496d75c7d5f09044b09009101029.zip
targets: add motor control pin definitions for MKS Nano V3x boards
Signed-off-by: Elias Naur <[email protected]>
-rw-r--r--src/machine/board_mksnanov3.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/machine/board_mksnanov3.go b/src/machine/board_mksnanov3.go
index 9a9d906fe..d096cdb9d 100644
--- a/src/machine/board_mksnanov3.go
+++ b/src/machine/board_mksnanov3.go
@@ -107,3 +107,36 @@ var (
AltFuncSelector: AF4_I2C1_2_3,
}
)
+
+// Motor control pins.
+const (
+ X_ENABLE = PE4
+ X_STEP = PE3
+ X_DIR = PE2
+ X_DIAG = PA15
+ X_UART = PD5
+
+ Y_ENABLE = PE1
+ Y_STEP = PE0
+ Y_DIR = PB9
+ Y_DIAG = PD2
+ Y_UART = PD7
+
+ Z_ENABLE = PB8
+ Z_STEP = PB5
+ Z_DIR = PB4
+ Z_DIAG = PC8
+ Z_UART = PD4
+
+ E0_ENABLE = PB3
+ E0_STEP = PD6
+ E0_DIR = PD3
+ E0_DIAG = PC4
+ E0_UART = PD9
+
+ E1_ENABLE = PA3
+ E1_STEP = PD15
+ E1_DIR = PA1
+ E1_DIAG = PE7
+ E1_UART = PD8
+)