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_ESP32.h 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Espressif ESP32 (Tensilica Xtensa LX6) pin assignments
  25. */
  26. #ifndef ARDUINO_ARCH_ESP32
  27. "Oops! Select an ESP32 board in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_INFO_NAME "Espressif ESP32"
  30. //
  31. // I2S (steppers & other output-only pins)
  32. //
  33. #define I2S_STEPPER_STREAM
  34. #define I2S_WS 25
  35. #define I2S_BCK 26
  36. #define I2S_DATA 27
  37. //
  38. // Limit Switches
  39. //
  40. #define X_MIN_PIN 34
  41. #define Y_MIN_PIN 35
  42. #define Z_MIN_PIN 15
  43. //
  44. // Steppers
  45. //
  46. #define X_STEP_PIN 128
  47. #define X_DIR_PIN 129
  48. #define X_ENABLE_PIN 130
  49. //#define X_CS_PIN 0
  50. #define Y_STEP_PIN 131
  51. #define Y_DIR_PIN 132
  52. #define Y_ENABLE_PIN 133
  53. //#define Y_CS_PIN 13
  54. #define Z_STEP_PIN 134
  55. #define Z_DIR_PIN 135
  56. #define Z_ENABLE_PIN 136
  57. //#define Z_CS_PIN 5 // SS_PIN
  58. #define E0_STEP_PIN 137
  59. #define E0_DIR_PIN 138
  60. #define E0_ENABLE_PIN 139
  61. //#define E0_CS_PIN 21
  62. //
  63. // Temperature Sensors
  64. //
  65. #define TEMP_0_PIN 36 // Analog Input
  66. #define TEMP_BED_PIN 39 // Analog Input
  67. //
  68. // Heaters / Fans
  69. //
  70. #define HEATER_0_PIN 2
  71. #define FAN_PIN 13
  72. #define HEATER_BED_PIN 4
  73. // SPI
  74. #define SDSS 5