Skip to content

Commit

Permalink
MKS DLC2 changed to use GPIO32 for spindle enable when on/off spidle …
Browse files Browse the repository at this point in the history
…is configured
  • Loading branch information
terjeio committed Aug 27, 2024
1 parent 4016346 commit fd2a3a7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main/boards/mks_dlc32_2_0_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Part of grblHAL
Copyright (c) 2023 Terje Io
Copyright (c) 2023-2024 Terje Io
Copyright (c) 2022 Lucio Tarantino
grblHAL is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -76,12 +76,20 @@
#if DRIVER_SPINDLE_PWM_ENABLE
#define SPINDLE_PWM_PIN GPIO_NUM_32
#else
#if DRIVER_SPINDLE_ENABLE
#define AUXOUTPUT4_PIN GPIO_NUM_27
#else
#define AUXOUTPUT4_PIN GPIO_NUM_32
#endif
#endif

#if DRIVER_SPINDLE_ENABLE
#if DRIVER_SPINDLE_PWM_ENABLE
#define SPINDLE_ENABLE_PIN GPIO_NUM_27
#else
#define SPINDLE_ENABLE_PIN GPIO_NUM_32
#endif
#else
#define AUXOUTPUT5_PIN GPIO_NUM_27
#endif

Expand Down

0 comments on commit fd2a3a7

Please sign in to comment.