My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Marlin.ino 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * Marlin Firmware
  3. *
  4. * Based on Sprinter and grbl.
  5. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. *
  20. * About Marlin
  21. *
  22. * This firmware is a mashup between Sprinter and grbl.
  23. * - https://github.com/kliment/Sprinter
  24. * - https://github.com/simen/grbl/tree
  25. *
  26. * It has preliminary support for Matthew Roberts advance algorithm
  27. * - http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
  28. */
  29. /* All the implementation is done in *.cpp files to get better compatibility with avr-gcc without the Arduino IDE */
  30. /* Use this file to help the Arduino IDE find which Arduino libraries are needed and to keep documentation on GCode */
  31. #include "Configuration.h"
  32. #include "pins.h"
  33. #ifdef ULTRA_LCD
  34. #if defined(LCD_I2C_TYPE_PCF8575)
  35. #include <Wire.h>
  36. #include <LiquidCrystal_I2C.h>
  37. #elif defined(LCD_I2C_TYPE_MCP23017) || defined(LCD_I2C_TYPE_MCP23008)
  38. #include <Wire.h>
  39. #include <LiquidTWI2.h>
  40. #elif defined(DOGLCD)
  41. #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://code.google.com/p/u8glib/)
  42. #else
  43. #include <LiquidCrystal.h> // library for character LCD
  44. #endif
  45. #endif
  46. #if HAS_DIGIPOTSS
  47. #include <SPI.h>
  48. #endif
  49. #if defined(DIGIPOT_I2C)
  50. #include <Wire.h>
  51. #endif
  52. #ifdef HAVE_TMCDRIVER
  53. #include <SPI.h>
  54. #include <TMC26XStepper.h>
  55. #endif
  56. #ifdef HAVE_L6470DRIVER
  57. #include <SPI.h>
  58. #include <L6470.h>
  59. #endif