2016-03-25 01:19:46 -05:00
|
|
|
/**
|
2016-03-24 13:01:20 -05:00
|
|
|
* Marlin 3D Printer Firmware
|
|
|
|
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2015-06-27 21:20:32 -05:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
|
|
|
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2016-03-24 13:01:20 -05:00
|
|
|
*/
|
|
|
|
|
2016-03-25 01:19:46 -05:00
|
|
|
/**
|
2015-06-27 21:20:32 -05:00
|
|
|
* About Marlin
|
|
|
|
*
|
|
|
|
* This firmware is a mashup between Sprinter and grbl.
|
|
|
|
* - https://github.com/kliment/Sprinter
|
|
|
|
* - https://github.com/simen/grbl/tree
|
|
|
|
*
|
|
|
|
* It has preliminary support for Matthew Roberts advance algorithm
|
|
|
|
* - http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
|
2013-09-29 11:20:06 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* All the implementation is done in *.cpp files to get better compatibility with avr-gcc without the Arduino IDE */
|
|
|
|
/* Use this file to help the Arduino IDE find which Arduino libraries are needed and to keep documentation on GCode */
|
|
|
|
|
2016-07-26 01:04:19 -05:00
|
|
|
#include "MarlinConfig.h"
|
2013-09-29 11:20:06 -05:00
|
|
|
|
2015-07-31 00:24:43 -05:00
|
|
|
#if ENABLED(ULTRA_LCD)
|
|
|
|
#if ENABLED(LCD_I2C_TYPE_PCF8575)
|
2013-09-29 11:20:06 -05:00
|
|
|
#include <Wire.h>
|
|
|
|
#include <LiquidCrystal_I2C.h>
|
2015-07-31 00:24:43 -05:00
|
|
|
#elif ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)
|
2013-09-29 11:20:06 -05:00
|
|
|
#include <Wire.h>
|
|
|
|
#include <LiquidTWI2.h>
|
2016-03-19 17:25:51 -05:00
|
|
|
#elif ENABLED(LCM1602)
|
|
|
|
#include <Wire.h>
|
|
|
|
#include <LCD.h>
|
|
|
|
#include <LiquidCrystal_I2C.h>
|
2015-07-31 00:24:43 -05:00
|
|
|
#elif ENABLED(DOGLCD)
|
2016-03-30 00:26:28 -05:00
|
|
|
#include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)
|
2013-09-29 11:20:06 -05:00
|
|
|
#else
|
|
|
|
#include <LiquidCrystal.h> // library for character LCD
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2015-03-14 06:28:22 -05:00
|
|
|
#if HAS_DIGIPOTSS
|
|
|
|
#include <SPI.h>
|
2013-09-29 11:20:06 -05:00
|
|
|
#endif
|
2014-02-05 03:47:12 -06:00
|
|
|
|
2015-07-31 00:24:43 -05:00
|
|
|
#if ENABLED(DIGIPOT_I2C)
|
2014-02-05 03:47:12 -06:00
|
|
|
#include <Wire.h>
|
|
|
|
#endif
|
2015-02-23 10:45:29 -06:00
|
|
|
|
2015-07-31 00:24:43 -05:00
|
|
|
#if ENABLED(HAVE_TMCDRIVER)
|
2015-02-23 10:45:29 -06:00
|
|
|
#include <SPI.h>
|
|
|
|
#include <TMC26XStepper.h>
|
|
|
|
#endif
|
2015-02-27 05:43:23 -06:00
|
|
|
|
2015-07-31 00:24:43 -05:00
|
|
|
#if ENABLED(HAVE_L6470DRIVER)
|
2015-02-27 05:43:23 -06:00
|
|
|
#include <SPI.h>
|
|
|
|
#include <L6470.h>
|
|
|
|
#endif
|