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

Marlin.ino 2.0KB

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