Guest User

Untitled

a guest
Feb 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. #ifndef PINS_H
  2. #define PINS_H
  3.  
  4. /****************************************************************************************
  5. * Sanguinololu pin assignment
  6. *
  7. ****************************************************************************************/
  8.  
  9. #define SANGUINOLOLU_V_1_2
  10. #define KNOWN_BOARD 1
  11.  
  12. #define X_STEP_PIN 21
  13. #define X_DIR_PIN 20
  14. #define X_MIN_PIN 7
  15. #define X_MAX_PIN -1 // 6
  16.  
  17. #define Y_STEP_PIN 23
  18. #define Y_DIR_PIN 22
  19. #define Y_MIN_PIN 10 // eigentlich 5
  20. #define Y_MAX_PIN -1 // 10
  21.  
  22. #define Z_STEP_PIN 26
  23. #define Z_DIR_PIN 25
  24. #define Z_MIN_PIN 12
  25. #define Z_MAX_PIN -1 // 11
  26.  
  27. #define E_STEP_PIN 28
  28. #define E_DIR_PIN 27
  29.  
  30. #define LED_PIN -1
  31.  
  32. #define FAN_PIN 19
  33.  
  34. #define PS_ON_PIN -1
  35. #define KILL_PIN -1
  36.  
  37. #define HEATER_0_PIN 0 // (extruder)
  38.  
  39. #ifdef SANGUINOLOLU_V_1_2
  40.  
  41. #define HEATER_1_PIN 1 // (bed)
  42. #define X_ENABLE_PIN 24
  43. #define Y_ENABLE_PIN 24
  44. #define Z_ENABLE_PIN 24
  45. #define E_ENABLE_PIN 24
  46.  
  47. #else
  48.  
  49. #define HEATER_1_PIN 1 // (bed)
  50. #define X_ENABLE_PIN 24
  51. #define Y_ENABLE_PIN 24
  52. #define Z_ENABLE_PIN 24
  53. #define E_ENABLE_PIN 24
  54.  
  55. #endif
  56.  
  57. #define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  58. #define TEMP_1_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  59. #define SDPOWER -1
  60. #define SDSS -1
  61.  
  62. #ifndef KNOWN_BOARD
  63. #error Unknown MOTHERBOARD value in configuration.h
  64. #endif
  65.  
  66. #endif
Add Comment
Please, Sign In to add comment