My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_ENWI_ESPNP.h 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Espressif ESP32 (Tensilica Xtensa LX6) on ESPNP by enwi
  25. * Website https://github.com/enwi/ESPNP
  26. */
  27. #include "env_validate.h"
  28. #define BOARD_INFO_NAME "ESPNP"
  29. #define DEFAULT_MACHINE_NAME "ESP Pick and Place"
  30. //
  31. // I2S (steppers & other output-only pins)
  32. //
  33. #define I2S_STEPPER_STREAM
  34. #if ENABLED(I2S_STEPPER_STREAM)
  35. #define I2S_WS 17
  36. #define I2S_BCK 22
  37. #define I2S_DATA 21
  38. #endif
  39. //
  40. // Servos
  41. //
  42. #define SERVO0_PIN 26
  43. #define SERVO1_PIN 25
  44. //
  45. // Limit Switches
  46. //
  47. #define X_STOP_PIN 36
  48. #define Y_STOP_PIN 39
  49. #define Z_STOP_PIN 34
  50. #define I_STOP_PIN 35
  51. #define J_STOP_PIN 05
  52. #define K_STOP_PIN 16
  53. //
  54. // Steppers
  55. //
  56. #define X_ENABLE_PIN 136
  57. #define X_DIR_PIN 137
  58. #define X_STEP_PIN 138
  59. #define X_CS_PIN 139
  60. #define Y_ENABLE_PIN 140
  61. #define Y_DIR_PIN 141
  62. #define Y_STEP_PIN 142
  63. #define Y_CS_PIN 143
  64. #define Z_ENABLE_PIN 144
  65. #define Z_DIR_PIN 145
  66. #define Z_STEP_PIN 146
  67. #define Z_CS_PIN 147
  68. #define I_ENABLE_PIN 148
  69. #define I_DIR_PIN 149
  70. #define I_STEP_PIN 150
  71. #define I_CS_PIN 151
  72. #define J_ENABLE_PIN 152
  73. #define J_DIR_PIN 153
  74. #define J_STEP_PIN 154
  75. #define J_CS_PIN 155
  76. #define K_ENABLE_PIN 156
  77. #define K_DIR_PIN 157
  78. #define K_STEP_PIN 158
  79. #define K_CS_PIN 159
  80. // Reduce baud rate to improve software serial reliability
  81. #define TMC_BAUD_RATE 19200
  82. //
  83. // Temperature Sensors
  84. //
  85. //#define TEMP_0_PIN 36 // Analog Input
  86. //#define TEMP_BED_PIN 39 // Analog Input
  87. // General use mosfets, useful for things like pumps and solenoids
  88. // Shift register pins 128, 129, 130 and 131 are broken out and can be used
  89. #define FAN_PIN 132
  90. #define FAN1_PIN 134
  91. #define FAN2_PIN 135
  92. #define FAN3_PIN 136
  93. // #define FAN_SOFT_PWM_REQUIRED // check if needed
  94. // Neopixel Rings
  95. #define NEOPIXEL_PIN 14
  96. #define NEOPIXEL2_PIN 27
  97. // SPI
  98. #define MISO_PIN 19
  99. #define MOSI_PIN 23
  100. #define SCK_PIN 18