Commit a1309759 authored by MagoKimbra's avatar MagoKimbra

Update Pause Pin

parent aa0fa6a5
......@@ -684,6 +684,7 @@ your extruder heater takes 2 minutes to hit the target on heating.
// Setting firmware for filament end switch
//#define FILAMENT_END_SWITCH
#ifdef FILAMENT_END_SWITCH
#define PAUSEPINPULLUP
const bool PAUSE_PIN_INVERTING = false; // set to true to invert the logic of the pause pin.
#endif
......
......@@ -23,31 +23,31 @@
#include "pins.h"
#ifndef AT90USB
#define HardwareSerial_h // trick to disable the standard HWserial
#define HardwareSerial_h // trick to disable the standard HWserial
#endif
#if (ARDUINO >= 100)
# include "Arduino.h"
#include "Arduino.h"
#else
# include "WProgram.h"
#include "WProgram.h"
#endif
// Arduino < 1.0.0 does not define this, so we need to do it ourselves
#ifndef analogInputToDigitalPin
# define analogInputToDigitalPin(p) ((p) + 0xA0)
#define analogInputToDigitalPin(p) ((p) + 0xA0)
#endif
#ifdef AT90USB
#include "HardwareSerial.h"
#include "HardwareSerial.h"
#endif
#include "MarlinSerial.h"
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif
#include "WString.h"
......@@ -86,7 +86,7 @@ extern const char echomagic[] PROGMEM;
#define SERIAL_ECHOPAIR(name,value) (serial_echopair_P(PSTR(name),(value)))
#define SERIAL_EOL SERIAL_ECHOLN("")
#define SERIAL_EOL MYSERIAL.write('\n')
void serial_echopair_P(const char *s_P, float v);
void serial_echopair_P(const char *s_P, double v);
......
......@@ -606,8 +606,10 @@ void setup_pausepin()
{
#if defined(PAUSE_PIN) && PAUSE_PIN > -1
SET_INPUT(PAUSE_PIN);
#ifdef PAUSEPINPULLUP
WRITE(PAUSE_PIN,HIGH);
#endif
#endif
}
void setup_photpin()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment