2012-08-08 18:56:39 +02:00
|
|
|
/* -*- c++ -*- */
|
|
|
|
|
2011-11-06 12:39:00 +01:00
|
|
|
/*
|
|
|
|
Reprap firmware 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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
|
2012-11-21 20:36:30 +01: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 */
|
2011-12-07 20:56:47 +01:00
|
|
|
|
2012-11-21 20:36:30 +01:00
|
|
|
#include "Configuration.h"
|
2012-12-04 16:27:21 +01:00
|
|
|
#include "pins.h"
|
|
|
|
|
2012-05-20 14:37:30 +02:00
|
|
|
#ifdef ULTRA_LCD
|
2013-02-25 16:15:23 +01:00
|
|
|
#ifdef LCD_I2C
|
|
|
|
#include <Wire.h>
|
2013-02-27 16:04:51 +01:00
|
|
|
#if defined(LCD_I2C_TYPE_PCF8575)
|
|
|
|
#include <LiquidCrystal_I2C.h>
|
|
|
|
#elif defined(LCD_I2C_TYPE_MCP23017)
|
2013-02-27 16:32:20 +01:00
|
|
|
#ifdef LCD_I2C_PANELOLU2
|
2013-02-27 16:04:51 +01:00
|
|
|
#include <LiquidTWI2.h>
|
|
|
|
#ifndef PANELOLU2
|
|
|
|
#error You must uncomment #define PANELOLU2 in LiquidTWI2.h for LiquidTWI2.cpp to compile correctly
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#include <LiquidTWI2.h>
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#error Unknown I2C LCD type
|
|
|
|
#endif
|
2013-02-25 16:15:23 +01:00
|
|
|
#else
|
|
|
|
#include <LiquidCrystal.h>
|
|
|
|
#endif
|
2012-11-21 20:53:56 +01:00
|
|
|
#endif
|
2012-12-05 20:23:13 +01:00
|
|
|
|
2012-12-04 16:27:21 +01:00
|
|
|
#if DIGIPOTSS_PIN > -1
|
2012-11-21 20:53:56 +01:00
|
|
|
#include <SPI.h>
|
2012-12-04 16:27:21 +01:00
|
|
|
#endif
|