Merge remote-tracking branch 'upstream/MK3' into code_size_optimization
and resolve conflicts (ultralcd.cpp)
This commit is contained in:
commit
65087b89ee
@ -16,8 +16,8 @@ extern uint16_t nPrinterType;
|
|||||||
extern PGM_P sPrinterName;
|
extern PGM_P sPrinterName;
|
||||||
|
|
||||||
// Firmware version
|
// Firmware version
|
||||||
#define FW_VERSION "3.7.2-RC1"
|
#define FW_VERSION "3.7.2"
|
||||||
#define FW_COMMIT_NR 2359
|
#define FW_COMMIT_NR 2363
|
||||||
// FW_VERSION_UNKNOWN means this is an unofficial build.
|
// FW_VERSION_UNKNOWN means this is an unofficial build.
|
||||||
// The firmware should only be checked into github with this symbol.
|
// The firmware should only be checked into github with this symbol.
|
||||||
#define FW_DEV_VERSION FW_VERSION_UNKNOWN
|
#define FW_DEV_VERSION FW_VERSION_UNKNOWN
|
||||||
|
@ -166,6 +166,17 @@ void manage_inactivity(bool ignore_stepper_queue=false);
|
|||||||
#define disable_z() {}
|
#define disable_z() {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef PSU_Delta
|
||||||
|
void init_force_z();
|
||||||
|
void check_force_z();
|
||||||
|
#undef disable_z
|
||||||
|
#define disable_z() disable_force_z()
|
||||||
|
void disable_force_z();
|
||||||
|
#undef enable_z
|
||||||
|
#define enable_z() enable_force_z()
|
||||||
|
void enable_force_z();
|
||||||
|
#endif // PSU_Delta
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2050,7 +2050,7 @@ PERLMOD_MAKEVAR_PREFIX =
|
|||||||
# C-preprocessor directives found in the sources and include files.
|
# C-preprocessor directives found in the sources and include files.
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
|
|
||||||
ENABLE_PREPROCESSING = YES
|
ENABLE_PREPROCESSING = NO
|
||||||
|
|
||||||
# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
|
# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
|
||||||
# in the source code. If set to NO, only conditional compilation will be
|
# in the source code. If set to NO, only conditional compilation will be
|
||||||
|
@ -71,6 +71,12 @@ void eeprom_init()
|
|||||||
}
|
}
|
||||||
if(is_uninitialized)
|
if(is_uninitialized)
|
||||||
{
|
{
|
||||||
|
// When upgrading from version older version (before multiple sheets were implemented in v3.8.0)
|
||||||
|
// Sheet 1 uses the previous Live adjust Z (@EEPROM_BABYSTEP_Z)
|
||||||
|
if(i == 0){
|
||||||
|
int last_babystep = eeprom_read_word((uint16_t *)EEPROM_BABYSTEP_Z);
|
||||||
|
eeprom_write_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[i].z_offset)), last_babystep);
|
||||||
|
}
|
||||||
eeprom_write(&(EEPROM_Sheets_base->s[i].name[0]), static_cast<char>(i + '1'));
|
eeprom_write(&(EEPROM_Sheets_base->s[i].name[0]), static_cast<char>(i + '1'));
|
||||||
eeprom_write(&(EEPROM_Sheets_base->s[i].name[1]), '\0');
|
eeprom_write(&(EEPROM_Sheets_base->s[i].name[1]), '\0');
|
||||||
}
|
}
|
||||||
|
@ -522,19 +522,6 @@ void fsensor_st_block_chunk(block_t* bl, int cnt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//! This ensures generating z-position at least 25mm above the heat bed.
|
|
||||||
//! Making this a template enables changing the computation data type easily at all spots where necessary.
|
|
||||||
//! @param current_z current z-position
|
|
||||||
//! @return z-position at least 25mm above the heat bed plus FILAMENTCHANGE_ZADD
|
|
||||||
template <typename T>
|
|
||||||
inline T fsensor_clamp_z(float current_z){
|
|
||||||
T z( current_z );
|
|
||||||
if(z < T(25)){ // make sure the compiler understands, that the constant 25 is of correct type
|
|
||||||
// - necessary for uint8_t -> results in shorter code
|
|
||||||
z = T(25); // move to at least 25mm above heat bed
|
|
||||||
}
|
|
||||||
return z + T(FILAMENTCHANGE_ZADD); // always move above the printout by FILAMENTCHANGE_ZADD (default 2mm)
|
|
||||||
}
|
|
||||||
|
|
||||||
//! Common code for enqueing M600 and supplemental codes into the command queue.
|
//! Common code for enqueing M600 and supplemental codes into the command queue.
|
||||||
//! Used both for the IR sensor and the PAT9125
|
//! Used both for the IR sensor and the PAT9125
|
||||||
@ -545,22 +532,6 @@ void fsensor_enque_M600(){
|
|||||||
enquecommand_front_P(PSTR("PRUSA fsensor_recover"));
|
enquecommand_front_P(PSTR("PRUSA fsensor_recover"));
|
||||||
fsensor_m600_enqueued = true;
|
fsensor_m600_enqueued = true;
|
||||||
enquecommand_front_P((PSTR("M600")));
|
enquecommand_front_P((PSTR("M600")));
|
||||||
#define xstr(a) str(a)
|
|
||||||
#define str(a) #a
|
|
||||||
static const char gcodeMove[] PROGMEM =
|
|
||||||
"G1 X" xstr(FILAMENTCHANGE_XPOS)
|
|
||||||
" Y" xstr(FILAMENTCHANGE_YPOS)
|
|
||||||
" Z%u";
|
|
||||||
#undef str
|
|
||||||
#undef xstr
|
|
||||||
char buf[32];
|
|
||||||
// integer arithmetics is far shorter, I don't need a precise float position here, just move a bit above
|
|
||||||
// 8bit arithmetics in fsensor_clamp_z is 10B shorter than 16bit (not talking about float ;) )
|
|
||||||
// The compile-time static_assert here ensures, that the computation gets enough bits in case of Z-range too high,
|
|
||||||
// i.e. makes the user change the data type, which also results in larger code
|
|
||||||
static_assert(Z_MAX_POS < (255 - FILAMENTCHANGE_ZADD), "Z-range too high, change fsensor_clamp_z<uint8_t> to <uint16_t>");
|
|
||||||
sprintf_P(buf, gcodeMove, fsensor_clamp_z<uint8_t>(current_position[Z_AXIS]) );
|
|
||||||
enquecommand_front(buf, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//! @brief filament sensor update (perform M600 on filament runout)
|
//! @brief filament sensor update (perform M600 on filament runout)
|
||||||
|
@ -368,6 +368,7 @@
|
|||||||
#define PIN_SET(pin) PORT(pin) |= __MSK(pin)
|
#define PIN_SET(pin) PORT(pin) |= __MSK(pin)
|
||||||
#define PIN_VAL(pin, val) if (val) PIN_SET(pin); else PIN_CLR(pin);
|
#define PIN_VAL(pin, val) if (val) PIN_SET(pin); else PIN_CLR(pin);
|
||||||
#define PIN_GET(pin) (PIN(pin) & __MSK(pin))
|
#define PIN_GET(pin) (PIN(pin) & __MSK(pin))
|
||||||
|
#define PIN_INQ(pin) (PORT(pin) & __MSK(pin))
|
||||||
|
|
||||||
|
|
||||||
#endif //_IO_ATMEGA2560
|
#endif //_IO_ATMEGA2560
|
||||||
|
334
Firmware/lcd.cpp
334
Firmware/lcd.cpp
@ -10,12 +10,19 @@
|
|||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "pins.h"
|
#include "pins.h"
|
||||||
#include <binary.h>
|
#include <binary.h>
|
||||||
//#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "Marlin.h"
|
#include "Marlin.h"
|
||||||
#include "fastio.h"
|
#include "fastio.h"
|
||||||
//-//
|
//-//
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
|
||||||
|
#define LCD_DEFAULT_DELAY 100
|
||||||
|
|
||||||
|
#if (defined(LCD_PINS_D0) && defined(LCD_PINS_D1) && defined(LCD_PINS_D2) && defined(LCD_PINS_D3))
|
||||||
|
#define LCD_8BIT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// #define VT100
|
||||||
|
|
||||||
// commands
|
// commands
|
||||||
#define LCD_CLEARDISPLAY 0x01
|
#define LCD_CLEARDISPLAY 0x01
|
||||||
@ -55,242 +62,202 @@
|
|||||||
#define LCD_5x10DOTS 0x04
|
#define LCD_5x10DOTS 0x04
|
||||||
#define LCD_5x8DOTS 0x00
|
#define LCD_5x8DOTS 0x00
|
||||||
|
|
||||||
|
// bitmasks for flag argument settings
|
||||||
|
#define LCD_RS_FLAG 0x01
|
||||||
|
#define LCD_HALF_FLAG 0x02
|
||||||
|
|
||||||
FILE _lcdout; // = {0}; Global variable is always zero initialized, no need to explicitly state that.
|
FILE _lcdout; // = {0}; Global variable is always zero initialized, no need to explicitly state that.
|
||||||
|
|
||||||
|
uint8_t lcd_displayfunction = 0;
|
||||||
|
uint8_t lcd_displaycontrol = 0;
|
||||||
|
uint8_t lcd_displaymode = 0;
|
||||||
|
|
||||||
uint8_t lcd_rs_pin; // LOW: command. HIGH: character.
|
|
||||||
uint8_t lcd_rw_pin; // LOW: write to LCD. HIGH: read from LCD.
|
|
||||||
uint8_t lcd_enable_pin; // activated by a HIGH pulse.
|
|
||||||
uint8_t lcd_data_pins[8];
|
|
||||||
|
|
||||||
uint8_t lcd_displayfunction;
|
|
||||||
uint8_t lcd_displaycontrol;
|
|
||||||
uint8_t lcd_displaymode;
|
|
||||||
|
|
||||||
uint8_t lcd_numlines;
|
|
||||||
uint8_t lcd_currline;
|
uint8_t lcd_currline;
|
||||||
|
|
||||||
|
#ifdef VT100
|
||||||
uint8_t lcd_escape[8];
|
uint8_t lcd_escape[8];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static void lcd_display(void);
|
||||||
|
|
||||||
void lcd_pulseEnable(void)
|
#if 0
|
||||||
|
static void lcd_no_display(void);
|
||||||
|
static void lcd_no_cursor(void);
|
||||||
|
static void lcd_cursor(void);
|
||||||
|
static void lcd_no_blink(void);
|
||||||
|
static void lcd_blink(void);
|
||||||
|
static void lcd_scrollDisplayLeft(void);
|
||||||
|
static void lcd_scrollDisplayRight(void);
|
||||||
|
static void lcd_leftToRight(void);
|
||||||
|
static void lcd_rightToLeft(void);
|
||||||
|
static void lcd_autoscroll(void);
|
||||||
|
static void lcd_no_autoscroll(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef VT100
|
||||||
|
void lcd_escape_write(uint8_t chr);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static void lcd_pulseEnable(void)
|
||||||
{
|
{
|
||||||
digitalWrite(lcd_enable_pin, LOW);
|
WRITE(LCD_PINS_ENABLE,HIGH);
|
||||||
delayMicroseconds(1);
|
_delay_us(1); // enable pulse must be >450ns
|
||||||
digitalWrite(lcd_enable_pin, HIGH);
|
WRITE(LCD_PINS_ENABLE,LOW);
|
||||||
delayMicroseconds(1); // enable pulse must be >450ns
|
|
||||||
digitalWrite(lcd_enable_pin, LOW);
|
|
||||||
delayMicroseconds(100); // commands need > 37us to settle
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_write4bits(uint8_t value)
|
static void lcd_writebits(uint8_t value)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 4; i++)
|
#ifdef LCD_8BIT
|
||||||
{
|
WRITE(LCD_PINS_D0, value & 0x01);
|
||||||
pinMode(lcd_data_pins[i], OUTPUT);
|
WRITE(LCD_PINS_D1, value & 0x02);
|
||||||
digitalWrite(lcd_data_pins[i], (value >> i) & 0x01);
|
WRITE(LCD_PINS_D2, value & 0x04);
|
||||||
}
|
WRITE(LCD_PINS_D3, value & 0x08);
|
||||||
|
#endif
|
||||||
|
WRITE(LCD_PINS_D4, value & 0x10);
|
||||||
|
WRITE(LCD_PINS_D5, value & 0x20);
|
||||||
|
WRITE(LCD_PINS_D6, value & 0x40);
|
||||||
|
WRITE(LCD_PINS_D7, value & 0x80);
|
||||||
|
|
||||||
lcd_pulseEnable();
|
lcd_pulseEnable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_write8bits(uint8_t value)
|
static void lcd_send(uint8_t data, uint8_t flags, uint16_t duration = LCD_DEFAULT_DELAY)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 8; i++)
|
WRITE(LCD_PINS_RS,flags&LCD_RS_FLAG);
|
||||||
|
_delay_us(5);
|
||||||
|
lcd_writebits(data);
|
||||||
|
#ifndef LCD_8BIT
|
||||||
|
if (!(flags & LCD_HALF_FLAG))
|
||||||
{
|
{
|
||||||
pinMode(lcd_data_pins[i], OUTPUT);
|
_delay_us(LCD_DEFAULT_DELAY);
|
||||||
digitalWrite(lcd_data_pins[i], (value >> i) & 0x01);
|
lcd_writebits(data<<4);
|
||||||
}
|
}
|
||||||
lcd_pulseEnable();
|
#endif
|
||||||
|
delayMicroseconds(duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
// write either command or data, with automatic 4/8-bit selection
|
static void lcd_command(uint8_t value, uint16_t delayExtra = 0)
|
||||||
void lcd_send(uint8_t value, uint8_t mode)
|
|
||||||
{
|
{
|
||||||
digitalWrite(lcd_rs_pin, mode);
|
lcd_send(value, LOW, LCD_DEFAULT_DELAY + delayExtra);
|
||||||
// if there is a RW pin indicated, set it low to Write
|
|
||||||
if (lcd_rw_pin != 255) digitalWrite(lcd_rw_pin, LOW);
|
|
||||||
if (lcd_displayfunction & LCD_8BITMODE)
|
|
||||||
lcd_write8bits(value);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
lcd_write4bits(value>>4);
|
|
||||||
lcd_write4bits(value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_command(uint8_t value)
|
static void lcd_write(uint8_t value)
|
||||||
{
|
{
|
||||||
lcd_send(value, LOW);
|
if (value == '\n' || value == '\r')
|
||||||
}
|
|
||||||
|
|
||||||
void lcd_clear(void);
|
|
||||||
void lcd_home(void);
|
|
||||||
void lcd_no_display(void);
|
|
||||||
void lcd_display(void);
|
|
||||||
void lcd_no_cursor(void);
|
|
||||||
void lcd_cursor(void);
|
|
||||||
void lcd_no_blink(void);
|
|
||||||
void lcd_blink(void);
|
|
||||||
void lcd_scrollDisplayLeft(void);
|
|
||||||
void lcd_scrollDisplayRight(void);
|
|
||||||
void lcd_leftToRight(void);
|
|
||||||
void lcd_rightToLeft(void);
|
|
||||||
void lcd_autoscroll(void);
|
|
||||||
void lcd_no_autoscroll(void);
|
|
||||||
void lcd_set_cursor(uint8_t col, uint8_t row);
|
|
||||||
void lcd_createChar_P(uint8_t location, const uint8_t* charmap);
|
|
||||||
|
|
||||||
uint8_t lcd_escape_write(uint8_t chr);
|
|
||||||
|
|
||||||
uint8_t lcd_write(uint8_t value)
|
|
||||||
{
|
|
||||||
if (value == '\n')
|
|
||||||
{
|
{
|
||||||
if (lcd_currline > 3) lcd_currline = -1;
|
if (lcd_currline > 3) lcd_currline = -1;
|
||||||
lcd_set_cursor(0, lcd_currline + 1); // LF
|
lcd_set_cursor(0, lcd_currline + 1); // LF
|
||||||
return 1;
|
return;
|
||||||
}
|
}
|
||||||
if (lcd_escape[0] || (value == 0x1b))
|
#ifdef VT100
|
||||||
return lcd_escape_write(value);
|
if (lcd_escape[0] || (value == 0x1b)){
|
||||||
|
lcd_escape_write(value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
lcd_send(value, HIGH);
|
lcd_send(value, HIGH);
|
||||||
return 1; // assume sucess
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lcd_begin(uint8_t lines, uint8_t dotsize, uint8_t clear)
|
static void lcd_begin(uint8_t clear)
|
||||||
{
|
{
|
||||||
if (lines > 1) lcd_displayfunction |= LCD_2LINE;
|
|
||||||
lcd_numlines = lines;
|
|
||||||
lcd_currline = 0;
|
lcd_currline = 0;
|
||||||
// for some 1 line displays you can select a 10 pixel high font
|
|
||||||
if ((dotsize != 0) && (lines == 1)) lcd_displayfunction |= LCD_5x10DOTS;
|
lcd_send(LCD_FUNCTIONSET | LCD_8BITMODE, LOW | LCD_HALF_FLAG, 4500); // wait min 4.1ms
|
||||||
// SEE PAGE 45/46 FOR INITIALIZATION SPECIFICATION!
|
|
||||||
// according to datasheet, we need at least 40ms after power rises above 2.7V
|
|
||||||
// before sending commands. Arduino can turn on way befer 4.5V so we'll wait 50
|
|
||||||
_delay_us(50000);
|
|
||||||
// Now we pull both RS and R/W low to begin commands
|
|
||||||
digitalWrite(lcd_rs_pin, LOW);
|
|
||||||
digitalWrite(lcd_enable_pin, LOW);
|
|
||||||
if (lcd_rw_pin != 255)
|
|
||||||
digitalWrite(lcd_rw_pin, LOW);
|
|
||||||
//put the LCD into 4 bit or 8 bit mode
|
|
||||||
if (!(lcd_displayfunction & LCD_8BITMODE))
|
|
||||||
{
|
|
||||||
// this is according to the hitachi HD44780 datasheet
|
|
||||||
// figure 24, pg 46
|
|
||||||
// we start in 8bit mode, try to set 4 bit mode
|
|
||||||
lcd_write4bits(0x03);
|
|
||||||
_delay_us(4500); // wait min 4.1ms
|
|
||||||
// second try
|
// second try
|
||||||
lcd_write4bits(0x03);
|
lcd_send(LCD_FUNCTIONSET | LCD_8BITMODE, LOW | LCD_HALF_FLAG, 150);
|
||||||
_delay_us(4500); // wait min 4.1ms
|
|
||||||
// third go!
|
// third go!
|
||||||
lcd_write4bits(0x03);
|
lcd_send(LCD_FUNCTIONSET | LCD_8BITMODE, LOW | LCD_HALF_FLAG, 150);
|
||||||
_delay_us(150);
|
#ifndef LCD_8BIT
|
||||||
// finally, set to 4-bit interface
|
// set to 4-bit interface
|
||||||
lcd_write4bits(0x02);
|
lcd_send(LCD_FUNCTIONSET | LCD_4BITMODE, LOW | LCD_HALF_FLAG, 150);
|
||||||
}
|
#endif
|
||||||
else
|
|
||||||
{
|
// finally, set # lines, font size, etc.0
|
||||||
// this is according to the hitachi HD44780 datasheet
|
|
||||||
// page 45 figure 23
|
|
||||||
// Send function set command sequence
|
|
||||||
lcd_command(LCD_FUNCTIONSET | lcd_displayfunction);
|
lcd_command(LCD_FUNCTIONSET | lcd_displayfunction);
|
||||||
_delay_us(4500); // wait more than 4.1ms
|
|
||||||
// second try
|
|
||||||
lcd_command(LCD_FUNCTIONSET | lcd_displayfunction);
|
|
||||||
_delay_us(150);
|
|
||||||
// third go
|
|
||||||
lcd_command(LCD_FUNCTIONSET | lcd_displayfunction);
|
|
||||||
}
|
|
||||||
// finally, set # lines, font size, etc.
|
|
||||||
lcd_command(LCD_FUNCTIONSET | lcd_displayfunction);
|
|
||||||
_delay_us(60);
|
|
||||||
// turn the display on with no cursor or blinking default
|
// turn the display on with no cursor or blinking default
|
||||||
lcd_displaycontrol = LCD_DISPLAYON | LCD_CURSOROFF | LCD_BLINKOFF;
|
lcd_displaycontrol = LCD_CURSOROFF | LCD_BLINKOFF;
|
||||||
lcd_display();
|
lcd_display();
|
||||||
_delay_us(60);
|
|
||||||
// clear it off
|
// clear it off
|
||||||
if (clear) lcd_clear();
|
if (clear) lcd_clear();
|
||||||
_delay_us(3000);
|
|
||||||
// Initialize to default text direction (for romance languages)
|
// Initialize to default text direction (for romance languages)
|
||||||
lcd_displaymode = LCD_ENTRYLEFT | LCD_ENTRYSHIFTDECREMENT;
|
lcd_displaymode = LCD_ENTRYLEFT | LCD_ENTRYSHIFTDECREMENT;
|
||||||
// set the entry mode
|
// set the entry mode
|
||||||
lcd_command(LCD_ENTRYMODESET | lcd_displaymode);
|
lcd_command(LCD_ENTRYMODESET | lcd_displaymode);
|
||||||
_delay_us(60);
|
|
||||||
|
#ifdef VT100
|
||||||
lcd_escape[0] = 0;
|
lcd_escape[0] = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int lcd_putchar(char c, FILE *)
|
static void lcd_putchar(char c, FILE *)
|
||||||
{
|
{
|
||||||
lcd_write(c);
|
lcd_write(c);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_init(void)
|
void lcd_init(void)
|
||||||
{
|
{
|
||||||
uint8_t fourbitmode = 1;
|
WRITE(LCD_PINS_ENABLE,LOW);
|
||||||
lcd_rs_pin = LCD_PINS_RS;
|
SET_OUTPUT(LCD_PINS_RS);
|
||||||
lcd_rw_pin = 255;
|
SET_OUTPUT(LCD_PINS_ENABLE);
|
||||||
lcd_enable_pin = LCD_PINS_ENABLE;
|
|
||||||
lcd_data_pins[0] = LCD_PINS_D4;
|
#ifdef LCD_8BIT
|
||||||
lcd_data_pins[1] = LCD_PINS_D5;
|
SET_OUTPUT(LCD_PINS_D0);
|
||||||
lcd_data_pins[2] = LCD_PINS_D6;
|
SET_OUTPUT(LCD_PINS_D1);
|
||||||
lcd_data_pins[3] = LCD_PINS_D7;
|
SET_OUTPUT(LCD_PINS_D2);
|
||||||
lcd_data_pins[4] = 0;
|
SET_OUTPUT(LCD_PINS_D3);
|
||||||
lcd_data_pins[5] = 0;
|
#endif
|
||||||
lcd_data_pins[6] = 0;
|
SET_OUTPUT(LCD_PINS_D4);
|
||||||
lcd_data_pins[7] = 0;
|
SET_OUTPUT(LCD_PINS_D5);
|
||||||
pinMode(lcd_rs_pin, OUTPUT);
|
SET_OUTPUT(LCD_PINS_D6);
|
||||||
// we can save 1 pin by not using RW. Indicate by passing 255 instead of pin#
|
SET_OUTPUT(LCD_PINS_D7);
|
||||||
if (lcd_rw_pin != 255) pinMode(lcd_rw_pin, OUTPUT);
|
|
||||||
pinMode(lcd_enable_pin, OUTPUT);
|
#ifdef LCD_8BIT
|
||||||
if (fourbitmode) lcd_displayfunction = LCD_4BITMODE | LCD_1LINE | LCD_5x8DOTS;
|
lcd_displayfunction |= LCD_8BITMODE;
|
||||||
else lcd_displayfunction = LCD_8BITMODE | LCD_1LINE | LCD_5x8DOTS;
|
#endif
|
||||||
lcd_begin(LCD_HEIGHT, LCD_5x8DOTS, 1);
|
lcd_displayfunction |= LCD_2LINE;
|
||||||
//lcd_clear();
|
_delay_us(50000);
|
||||||
|
lcd_begin(1); //first time init
|
||||||
fdev_setup_stream(lcdout, lcd_putchar, NULL, _FDEV_SETUP_WRITE); //setup lcdout stream
|
fdev_setup_stream(lcdout, lcd_putchar, NULL, _FDEV_SETUP_WRITE); //setup lcdout stream
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_refresh(void)
|
void lcd_refresh(void)
|
||||||
{
|
{
|
||||||
lcd_begin(LCD_HEIGHT, LCD_5x8DOTS, 1);
|
lcd_begin(1);
|
||||||
lcd_set_custom_characters();
|
lcd_set_custom_characters();
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_refresh_noclear(void)
|
void lcd_refresh_noclear(void)
|
||||||
{
|
{
|
||||||
lcd_begin(LCD_HEIGHT, LCD_5x8DOTS, 0);
|
lcd_begin(0);
|
||||||
lcd_set_custom_characters();
|
lcd_set_custom_characters();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void lcd_clear(void)
|
void lcd_clear(void)
|
||||||
{
|
{
|
||||||
lcd_command(LCD_CLEARDISPLAY); // clear display, set cursor position to zero
|
lcd_command(LCD_CLEARDISPLAY, 1600); // clear display, set cursor position to zero
|
||||||
_delay_us(1600); // this command takes a long time
|
lcd_currline = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_home(void)
|
void lcd_home(void)
|
||||||
{
|
{
|
||||||
lcd_command(LCD_RETURNHOME); // set cursor position to zero
|
lcd_command(LCD_RETURNHOME, 1600); // set cursor position to zero
|
||||||
_delay_us(1600); // this command takes a long time!
|
lcd_currline = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Turn the display on/off (quickly)
|
// Turn the display on/off (quickly)
|
||||||
void lcd_no_display(void)
|
|
||||||
{
|
|
||||||
lcd_displaycontrol &= ~LCD_DISPLAYON;
|
|
||||||
lcd_command(LCD_DISPLAYCONTROL | lcd_displaycontrol);
|
|
||||||
}
|
|
||||||
|
|
||||||
void lcd_display(void)
|
void lcd_display(void)
|
||||||
{
|
{
|
||||||
lcd_displaycontrol |= LCD_DISPLAYON;
|
lcd_displaycontrol |= LCD_DISPLAYON;
|
||||||
lcd_command(LCD_DISPLAYCONTROL | lcd_displaycontrol);
|
lcd_command(LCD_DISPLAYCONTROL | lcd_displaycontrol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
void lcd_no_display(void)
|
||||||
|
{
|
||||||
|
lcd_displaycontrol &= ~LCD_DISPLAYON;
|
||||||
|
lcd_command(LCD_DISPLAYCONTROL | lcd_displaycontrol);
|
||||||
|
}
|
||||||
|
|
||||||
// Turns the underline cursor on/off
|
// Turns the underline cursor on/off
|
||||||
void lcd_no_cursor(void)
|
void lcd_no_cursor(void)
|
||||||
{
|
{
|
||||||
@ -355,12 +322,13 @@ void lcd_no_autoscroll(void)
|
|||||||
lcd_displaymode &= ~LCD_ENTRYSHIFTINCREMENT;
|
lcd_displaymode &= ~LCD_ENTRYSHIFTINCREMENT;
|
||||||
lcd_command(LCD_ENTRYMODESET | lcd_displaymode);
|
lcd_command(LCD_ENTRYMODESET | lcd_displaymode);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void lcd_set_cursor(uint8_t col, uint8_t row)
|
void lcd_set_cursor(uint8_t col, uint8_t row)
|
||||||
{
|
{
|
||||||
int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
|
int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
|
||||||
if ( row >= lcd_numlines )
|
if (row >= LCD_HEIGHT)
|
||||||
row = lcd_numlines-1; // we count rows starting w/0
|
row = LCD_HEIGHT - 1; // we count rows starting w/0
|
||||||
lcd_currline = row;
|
lcd_currline = row;
|
||||||
lcd_command(LCD_SETDDRAMADDR | (col + row_offsets[row]));
|
lcd_command(LCD_SETDDRAMADDR | (col + row_offsets[row]));
|
||||||
}
|
}
|
||||||
@ -375,12 +343,14 @@ void lcd_createChar_P(uint8_t location, const uint8_t* charmap)
|
|||||||
lcd_send(pgm_read_byte(&charmap[i]), HIGH);
|
lcd_send(pgm_read_byte(&charmap[i]), HIGH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef VT100
|
||||||
|
|
||||||
//Supported VT100 escape codes:
|
//Supported VT100 escape codes:
|
||||||
//EraseScreen "\x1b[2J"
|
//EraseScreen "\x1b[2J"
|
||||||
//CursorHome "\x1b[%d;%dH"
|
//CursorHome "\x1b[%d;%dH"
|
||||||
//CursorShow "\x1b[?25h"
|
//CursorShow "\x1b[?25h"
|
||||||
//CursorHide "\x1b[?25l"
|
//CursorHide "\x1b[?25l"
|
||||||
uint8_t lcd_escape_write(uint8_t chr)
|
void lcd_escape_write(uint8_t chr)
|
||||||
{
|
{
|
||||||
#define escape_cnt (lcd_escape[0]) //escape character counter
|
#define escape_cnt (lcd_escape[0]) //escape character counter
|
||||||
#define is_num_msk (lcd_escape[1]) //numeric character bit mask
|
#define is_num_msk (lcd_escape[1]) //numeric character bit mask
|
||||||
@ -410,26 +380,26 @@ uint8_t lcd_escape_write(uint8_t chr)
|
|||||||
switch (escape_cnt++)
|
switch (escape_cnt++)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
if (chr == 0x1b) return 1; // escape = "\x1b"
|
if (chr == 0x1b) return; // escape = "\x1b"
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
is_num_msk = 0x00; // reset 'is number' bit mask
|
is_num_msk = 0x00; // reset 'is number' bit mask
|
||||||
if (chr == '[') return 1; // escape = "\x1b["
|
if (chr == '[') return; // escape = "\x1b["
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
switch (chr)
|
switch (chr)
|
||||||
{
|
{
|
||||||
case '2': return 1; // escape = "\x1b[2"
|
case '2': return; // escape = "\x1b[2"
|
||||||
case '?': return 1; // escape = "\x1b[?"
|
case '?': return; // escape = "\x1b[?"
|
||||||
default:
|
default:
|
||||||
if (chr_is_num) return 1; // escape = "\x1b[%1d"
|
if (chr_is_num) return; // escape = "\x1b[%1d"
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
switch (lcd_escape[2])
|
switch (lcd_escape[2])
|
||||||
{
|
{
|
||||||
case '?': // escape = "\x1b[?"
|
case '?': // escape = "\x1b[?"
|
||||||
if (chr == '2') return 1; // escape = "\x1b[?2"
|
if (chr == '2') return; // escape = "\x1b[?2"
|
||||||
break;
|
break;
|
||||||
case '2':
|
case '2':
|
||||||
if (chr == 'J') // escape = "\x1b[2J"
|
if (chr == 'J') // escape = "\x1b[2J"
|
||||||
@ -438,20 +408,20 @@ uint8_t lcd_escape_write(uint8_t chr)
|
|||||||
if (e_2_is_num && // escape = "\x1b[%1d"
|
if (e_2_is_num && // escape = "\x1b[%1d"
|
||||||
((chr == ';') || // escape = "\x1b[%1d;"
|
((chr == ';') || // escape = "\x1b[%1d;"
|
||||||
chr_is_num)) // escape = "\x1b[%2d"
|
chr_is_num)) // escape = "\x1b[%2d"
|
||||||
return 1;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
switch (lcd_escape[2])
|
switch (lcd_escape[2])
|
||||||
{
|
{
|
||||||
case '?': // "\x1b[?"
|
case '?': // "\x1b[?"
|
||||||
if ((lcd_escape[3] == '2') && (chr == '5')) return 1; // escape = "\x1b[?25"
|
if ((lcd_escape[3] == '2') && (chr == '5')) return; // escape = "\x1b[?25"
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (e_2_is_num) // escape = "\x1b[%1d"
|
if (e_2_is_num) // escape = "\x1b[%1d"
|
||||||
{
|
{
|
||||||
if ((lcd_escape[3] == ';') && chr_is_num) return 1; // escape = "\x1b[%1d;%1d"
|
if ((lcd_escape[3] == ';') && chr_is_num) return; // escape = "\x1b[%1d;%1d"
|
||||||
else if (e_3_is_num && (chr == ';')) return 1; // escape = "\x1b[%2d;"
|
else if (e_3_is_num && (chr == ';')) return; // escape = "\x1b[%2d;"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -478,10 +448,10 @@ uint8_t lcd_escape_write(uint8_t chr)
|
|||||||
if (chr == 'H') // escape = "\x1b%1d;%1dH"
|
if (chr == 'H') // escape = "\x1b%1d;%1dH"
|
||||||
lcd_set_cursor(e4_num, e2_num); // CursorHome
|
lcd_set_cursor(e4_num, e2_num); // CursorHome
|
||||||
else if (chr_is_num)
|
else if (chr_is_num)
|
||||||
return 1; // escape = "\x1b%1d;%2d"
|
return; // escape = "\x1b%1d;%2d"
|
||||||
}
|
}
|
||||||
else if (e_3_is_num && (lcd_escape[4] == ';') && chr_is_num)
|
else if (e_3_is_num && (lcd_escape[4] == ';') && chr_is_num)
|
||||||
return 1; // escape = "\x1b%2d;%1d"
|
return; // escape = "\x1b%2d;%1d"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -495,7 +465,7 @@ uint8_t lcd_escape_write(uint8_t chr)
|
|||||||
if (chr == 'H') // escape = "\x1b%2d;%1dH"
|
if (chr == 'H') // escape = "\x1b%2d;%1dH"
|
||||||
lcd_set_cursor(e5_num, e23_num); // CursorHome
|
lcd_set_cursor(e5_num, e23_num); // CursorHome
|
||||||
else if (chr_is_num) // "\x1b%2d;%2d"
|
else if (chr_is_num) // "\x1b%2d;%2d"
|
||||||
return 1;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -506,10 +476,9 @@ uint8_t lcd_escape_write(uint8_t chr)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
escape_cnt = 0; // reset escape
|
escape_cnt = 0; // reset escape
|
||||||
return 1; // assume sucess
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif //VT100
|
||||||
|
|
||||||
|
|
||||||
int lcd_putc(int c)
|
int lcd_putc(int c)
|
||||||
@ -648,16 +617,6 @@ void lcd_printFloat(double number, uint8_t digits)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uint8_t lcd_draw_update = 2;
|
uint8_t lcd_draw_update = 2;
|
||||||
int32_t lcd_encoder = 0;
|
int32_t lcd_encoder = 0;
|
||||||
uint8_t lcd_encoder_bits = 0;
|
uint8_t lcd_encoder_bits = 0;
|
||||||
@ -710,7 +669,7 @@ Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
|
|||||||
for(int8_t i = 0; i < 10; i++)
|
for(int8_t i = 0; i < 10; i++)
|
||||||
{
|
{
|
||||||
Sound_MakeCustom(100,0,false);
|
Sound_MakeCustom(100,0,false);
|
||||||
delayMicroseconds(100);
|
_delay_us(100);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
@ -722,13 +681,6 @@ void lcd_quick_feedback(void)
|
|||||||
lcd_beeper_quick_feedback();
|
lcd_beeper_quick_feedback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void lcd_update(uint8_t lcdDrawUpdateOverride)
|
void lcd_update(uint8_t lcdDrawUpdateOverride)
|
||||||
{
|
{
|
||||||
if (lcd_draw_update < lcdDrawUpdateOverride)
|
if (lcd_draw_update < lcdDrawUpdateOverride)
|
||||||
|
@ -11,8 +11,7 @@
|
|||||||
extern FILE _lcdout;
|
extern FILE _lcdout;
|
||||||
|
|
||||||
#define lcdout (&_lcdout)
|
#define lcdout (&_lcdout)
|
||||||
extern int lcd_putchar(char c, FILE *stream);
|
extern void lcd_putchar(char c, FILE *stream);
|
||||||
|
|
||||||
|
|
||||||
extern void lcd_init(void);
|
extern void lcd_init(void);
|
||||||
|
|
||||||
@ -20,13 +19,10 @@ extern void lcd_refresh(void);
|
|||||||
|
|
||||||
extern void lcd_refresh_noclear(void);
|
extern void lcd_refresh_noclear(void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern void lcd_clear(void);
|
extern void lcd_clear(void);
|
||||||
|
|
||||||
extern void lcd_home(void);
|
extern void lcd_home(void);
|
||||||
|
|
||||||
|
|
||||||
/*extern void lcd_no_display(void);
|
/*extern void lcd_no_display(void);
|
||||||
extern void lcd_display(void);
|
extern void lcd_display(void);
|
||||||
extern void lcd_no_blink(void);
|
extern void lcd_no_blink(void);
|
||||||
@ -45,7 +41,6 @@ extern void lcd_set_cursor(uint8_t col, uint8_t row);
|
|||||||
extern void lcd_createChar_P(uint8_t, const uint8_t*);
|
extern void lcd_createChar_P(uint8_t, const uint8_t*);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern int lcd_putc(int c);
|
extern int lcd_putc(int c);
|
||||||
extern int lcd_puts_P(const char* str);
|
extern int lcd_puts_P(const char* str);
|
||||||
extern int lcd_puts_at_P(uint8_t c, uint8_t r, const char* str);
|
extern int lcd_puts_at_P(uint8_t c, uint8_t r, const char* str);
|
||||||
@ -66,7 +61,9 @@ extern void lcd_print(double, int = 2);
|
|||||||
|
|
||||||
//! @brief Clear screen
|
//! @brief Clear screen
|
||||||
#define ESC_2J "\x1b[2J"
|
#define ESC_2J "\x1b[2J"
|
||||||
|
//! @brief Show cursor
|
||||||
#define ESC_25h "\x1b[?25h"
|
#define ESC_25h "\x1b[?25h"
|
||||||
|
//! @brief Hide cursor
|
||||||
#define ESC_25l "\x1b[?25l"
|
#define ESC_25l "\x1b[?25l"
|
||||||
//! @brief Set cursor to
|
//! @brief Set cursor to
|
||||||
//! @param c column
|
//! @param c column
|
||||||
@ -118,9 +115,6 @@ extern lcd_lcdupdate_func_t lcd_lcdupdate_func;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern uint8_t lcd_clicked(void);
|
extern uint8_t lcd_clicked(void);
|
||||||
|
|
||||||
extern void lcd_beeper_quick_feedback(void);
|
extern void lcd_beeper_quick_feedback(void);
|
||||||
@ -128,13 +122,6 @@ extern void lcd_beeper_quick_feedback(void);
|
|||||||
//Cause an LCD refresh, and give the user visual or audible feedback that something has happened
|
//Cause an LCD refresh, and give the user visual or audible feedback that something has happened
|
||||||
extern void lcd_quick_feedback(void);
|
extern void lcd_quick_feedback(void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern void lcd_update(uint8_t lcdDrawUpdateOverride);
|
extern void lcd_update(uint8_t lcdDrawUpdateOverride);
|
||||||
|
|
||||||
extern void lcd_update_enable(uint8_t enabled);
|
extern void lcd_update_enable(uint8_t enabled);
|
||||||
@ -165,29 +152,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Implementation of the LCD display routines for a Hitachi HD44780 display. These are common LCD character displays.
|
|
||||||
* When selecting the Russian language, a slightly different LCD implementation is used to handle UTF8 characters.
|
|
||||||
**/
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////
|
////////////////////////////////////
|
||||||
// Setup button and encode mappings for each panel (into 'lcd_buttons' variable
|
// Setup button and encode mappings for each panel (into 'lcd_buttons' variable
|
||||||
//
|
//
|
||||||
@ -223,8 +187,6 @@ private:
|
|||||||
#define encrot3 1
|
#define encrot3 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Custom characters defined in the first 8 characters of the LCD
|
//Custom characters defined in the first 8 characters of the LCD
|
||||||
#define LCD_STR_BEDTEMP "\x00"
|
#define LCD_STR_BEDTEMP "\x00"
|
||||||
#define LCD_STR_DEGREE "\x01"
|
#define LCD_STR_DEGREE "\x01"
|
||||||
|
@ -84,6 +84,7 @@ const char MSG_SELFTEST_MOTOR[] PROGMEM_I1 = ISTR("Motor"); ////
|
|||||||
const char MSG_SELFTEST_FILAMENT_SENSOR[] PROGMEM_I1 = ISTR("Filament sensor"); ////c=17
|
const char MSG_SELFTEST_FILAMENT_SENSOR[] PROGMEM_I1 = ISTR("Filament sensor"); ////c=17
|
||||||
const char MSG_SELFTEST_WIRINGERROR[] PROGMEM_I1 = ISTR("Wiring error"); ////
|
const char MSG_SELFTEST_WIRINGERROR[] PROGMEM_I1 = ISTR("Wiring error"); ////
|
||||||
const char MSG_SETTINGS[] PROGMEM_I1 = ISTR("Settings"); ////
|
const char MSG_SETTINGS[] PROGMEM_I1 = ISTR("Settings"); ////
|
||||||
|
const char MSG_HW_SETUP[] PROGMEM_I1 = ISTR("HW Setup"); ////
|
||||||
const char MSG_SILENT_MODE_OFF[] PROGMEM_I1 = ISTR("Mode [high power]"); ////
|
const char MSG_SILENT_MODE_OFF[] PROGMEM_I1 = ISTR("Mode [high power]"); ////
|
||||||
const char MSG_SILENT_MODE_ON[] PROGMEM_I1 = ISTR("Mode [silent]"); ////
|
const char MSG_SILENT_MODE_ON[] PROGMEM_I1 = ISTR("Mode [silent]"); ////
|
||||||
const char MSG_STEALTH_MODE_OFF[] PROGMEM_I1 = ISTR("Mode [Normal]"); ////
|
const char MSG_STEALTH_MODE_OFF[] PROGMEM_I1 = ISTR("Mode [Normal]"); ////
|
||||||
@ -128,3 +129,4 @@ const char MSG_ENDSTOP_OPEN[] PROGMEM_N1 = "open"; ////
|
|||||||
const char MSG_POWERUP[] PROGMEM_N1 = "PowerUp"; ////
|
const char MSG_POWERUP[] PROGMEM_N1 = "PowerUp"; ////
|
||||||
const char MSG_ERR_STOPPED[] PROGMEM_N1 = "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"; ////
|
const char MSG_ERR_STOPPED[] PROGMEM_N1 = "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"; ////
|
||||||
const char MSG_ENDSTOP_HIT[] PROGMEM_N1 = "TRIGGERED"; ////
|
const char MSG_ENDSTOP_HIT[] PROGMEM_N1 = "TRIGGERED"; ////
|
||||||
|
const char MSG_OCTOPRINT_PAUSE[] PROGMEM_N1 = "// action:pause"; ////
|
||||||
|
@ -84,6 +84,7 @@ extern const char MSG_SELFTEST_MOTOR[];
|
|||||||
extern const char MSG_SELFTEST_FILAMENT_SENSOR[];
|
extern const char MSG_SELFTEST_FILAMENT_SENSOR[];
|
||||||
extern const char MSG_SELFTEST_WIRINGERROR[];
|
extern const char MSG_SELFTEST_WIRINGERROR[];
|
||||||
extern const char MSG_SETTINGS[];
|
extern const char MSG_SETTINGS[];
|
||||||
|
extern const char MSG_HW_SETUP[];
|
||||||
extern const char MSG_SILENT_MODE_OFF[];
|
extern const char MSG_SILENT_MODE_OFF[];
|
||||||
extern const char MSG_SILENT_MODE_ON[];
|
extern const char MSG_SILENT_MODE_ON[];
|
||||||
extern const char MSG_STEALTH_MODE_OFF[];
|
extern const char MSG_STEALTH_MODE_OFF[];
|
||||||
@ -129,6 +130,7 @@ extern const char MSG_ERR_STOPPED[];
|
|||||||
extern const char MSG_ENDSTOP_HIT[];
|
extern const char MSG_ENDSTOP_HIT[];
|
||||||
extern const char MSG_EJECT_FILAMENT[];
|
extern const char MSG_EJECT_FILAMENT[];
|
||||||
extern const char MSG_CUT_FILAMENT[];
|
extern const char MSG_CUT_FILAMENT[];
|
||||||
|
extern const char MSG_OCTOPRINT_PAUSE[];
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
|
@ -61,17 +61,18 @@ switch(eSoundMode)
|
|||||||
Sound_SaveMode();
|
Sound_SaveMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//if critical is true then silend and once mode is ignored
|
||||||
void Sound_MakeCustom(uint16_t ms,uint16_t tone_,bool critical){
|
void Sound_MakeCustom(uint16_t ms,uint16_t tone_,bool critical){
|
||||||
if (!critical){
|
if (!critical){
|
||||||
if (eSoundMode != e_SOUND_MODE_SILENT){
|
if (eSoundMode != e_SOUND_MODE_SILENT){
|
||||||
if(!tone_){
|
if(!tone_){
|
||||||
WRITE(BEEPER, HIGH);
|
WRITE(BEEPER, HIGH);
|
||||||
delayMicroseconds(ms);
|
_delay(ms);
|
||||||
WRITE(BEEPER, LOW);
|
WRITE(BEEPER, LOW);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
_tone(BEEPER, tone_);
|
_tone(BEEPER, tone_);
|
||||||
delayMicroseconds(ms);
|
_delay(ms);
|
||||||
_noTone(BEEPER);
|
_noTone(BEEPER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -79,13 +80,13 @@ void Sound_MakeCustom(uint16_t ms,uint16_t tone_,bool critical){
|
|||||||
else{
|
else{
|
||||||
if(!tone_){
|
if(!tone_){
|
||||||
WRITE(BEEPER, HIGH);
|
WRITE(BEEPER, HIGH);
|
||||||
delayMicroseconds(ms);
|
_delay(ms);
|
||||||
WRITE(BEEPER, LOW);
|
WRITE(BEEPER, LOW);
|
||||||
delayMicroseconds(100);
|
_delay(ms);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
_tone(BEEPER, tone_);
|
_tone(BEEPER, tone_);
|
||||||
delayMicroseconds(ms);
|
_delay(ms);
|
||||||
_noTone(BEEPER);
|
_noTone(BEEPER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -134,10 +135,10 @@ switch(eSoundMode)
|
|||||||
|
|
||||||
static void Sound_DoSound_Blind_Alert(void)
|
static void Sound_DoSound_Blind_Alert(void)
|
||||||
{
|
{
|
||||||
_tone(BEEPER,100);
|
_tone(BEEPER,300);
|
||||||
delayMicroseconds(50);
|
_delay_ms(75);
|
||||||
_noTone(BEEPER);
|
_noTone(BEEPER);
|
||||||
delayMicroseconds(200);
|
_delay_ms(75);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Sound_DoSound_Encoder_Move(void)
|
static void Sound_DoSound_Encoder_Move(void)
|
||||||
@ -169,7 +170,7 @@ for(nI=0;nI<10;nI++)
|
|||||||
static void Sound_DoSound_Prompt(void)
|
static void Sound_DoSound_Prompt(void)
|
||||||
{
|
{
|
||||||
WRITE(BEEPER,HIGH);
|
WRITE(BEEPER,HIGH);
|
||||||
delayMicroseconds(500);
|
_delay_ms(500);
|
||||||
WRITE(BEEPER,LOW);
|
WRITE(BEEPER,LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1306,6 +1306,9 @@ void st_init()
|
|||||||
SET_OUTPUT(Z2_STEP_PIN);
|
SET_OUTPUT(Z2_STEP_PIN);
|
||||||
WRITE(Z2_STEP_PIN,INVERT_Z_STEP_PIN);
|
WRITE(Z2_STEP_PIN,INVERT_Z_STEP_PIN);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef PSU_Delta
|
||||||
|
init_force_z();
|
||||||
|
#endif // PSU_Delta
|
||||||
disable_z();
|
disable_z();
|
||||||
#endif
|
#endif
|
||||||
#if defined(E0_STEP_PIN) && (E0_STEP_PIN > -1)
|
#if defined(E0_STEP_PIN) && (E0_STEP_PIN > -1)
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#include <avr/wdt.h>
|
#include <avr/wdt.h>
|
||||||
#include "adc.h"
|
#include "adc.h"
|
||||||
#include "ConfigurationStore.h"
|
#include "ConfigurationStore.h"
|
||||||
|
#include "messages.h"
|
||||||
#include "Timer.h"
|
#include "Timer.h"
|
||||||
#include "Configuration_prusa.h"
|
#include "Configuration_prusa.h"
|
||||||
|
|
||||||
@ -499,6 +499,7 @@ void checkFanSpeed()
|
|||||||
max_extruder_fan_errors = 5; //5 seconds
|
max_extruder_fan_errors = 5; //5 seconds
|
||||||
#endif //FAN_SOFT_PWM
|
#endif //FAN_SOFT_PWM
|
||||||
|
|
||||||
|
if(fans_check_enabled != false)
|
||||||
fans_check_enabled = (eeprom_read_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED) > 0);
|
fans_check_enabled = (eeprom_read_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED) > 0);
|
||||||
static unsigned char fan_speed_errors[2] = { 0,0 };
|
static unsigned char fan_speed_errors[2] = { 0,0 };
|
||||||
#if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 >-1))
|
#if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 >-1))
|
||||||
@ -524,6 +525,8 @@ void checkFanSpeed()
|
|||||||
fan_speed_errors[1] = 0;
|
fan_speed_errors[1] = 0;
|
||||||
fanSpeedError(1); //print fan
|
fanSpeedError(1); //print fan
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SERIAL_PROTOCOLLNRPGM(MSG_OK); //for octoprint
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Prints serialMsg to serial port, displays lcdMsg onto the LCD and beeps.
|
//! Prints serialMsg to serial port, displays lcdMsg onto the LCD and beeps.
|
||||||
@ -541,18 +544,19 @@ static void fanSpeedErrorBeep(const char *serialMsg, const char *lcdMsg){
|
|||||||
void fanSpeedError(unsigned char _fan) {
|
void fanSpeedError(unsigned char _fan) {
|
||||||
if (get_message_level() != 0 && isPrintPaused) return;
|
if (get_message_level() != 0 && isPrintPaused) return;
|
||||||
//to ensure that target temp. is not set to zero in case taht we are resuming print
|
//to ensure that target temp. is not set to zero in case taht we are resuming print
|
||||||
if (card.sdprinting) {
|
if (card.sdprinting || is_usb_printing) {
|
||||||
if (heating_status != 0) {
|
if (heating_status != 0) {
|
||||||
lcd_print_stop();
|
lcd_print_stop();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fan_check_error = EFCE_DETECTED;
|
fan_check_error = EFCE_DETECTED;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_PAUSE); //for octoprint
|
||||||
setTargetHotend0(0);
|
setTargetHotend0(0);
|
||||||
SERIAL_ECHOLNPGM("// action:pause"); //for octoprint
|
heating_status = 0;
|
||||||
|
fan_check_error = EFCE_REPORTED;
|
||||||
}
|
}
|
||||||
switch (_fan) {
|
switch (_fan) {
|
||||||
case 0: // extracting the same code from case 0 and case 1 into a function saves 72B
|
case 0: // extracting the same code from case 0 and case 1 into a function saves 72B
|
||||||
@ -562,6 +566,7 @@ void fanSpeedError(unsigned char _fan) {
|
|||||||
fanSpeedErrorBeep(PSTR("Print fan speed is lower than expected"), PSTR("Err: PRINT FAN ERROR") );
|
fanSpeedErrorBeep(PSTR("Print fan speed is lower than expected"), PSTR("Err: PRINT FAN ERROR") );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
SERIAL_PROTOCOLLNRPGM(MSG_OK);
|
||||||
}
|
}
|
||||||
#endif //(defined(TACH_0) && TACH_0 >-1) || (defined(TACH_1) && TACH_1 > -1)
|
#endif //(defined(TACH_0) && TACH_0 >-1) || (defined(TACH_1) && TACH_1 > -1)
|
||||||
|
|
||||||
|
@ -122,6 +122,7 @@ inline void babystepsTodoZsubtract(int n)
|
|||||||
//inline so that there is no performance decrease.
|
//inline so that there is no performance decrease.
|
||||||
//deg=degreeCelsius
|
//deg=degreeCelsius
|
||||||
|
|
||||||
|
// Doesn't save FLASH when FORCE_INLINE removed.
|
||||||
FORCE_INLINE float degHotend(uint8_t extruder) {
|
FORCE_INLINE float degHotend(uint8_t extruder) {
|
||||||
return current_temperature[extruder];
|
return current_temperature[extruder];
|
||||||
};
|
};
|
||||||
@ -140,6 +141,7 @@ FORCE_INLINE float degBed() {
|
|||||||
return current_temperature_bed;
|
return current_temperature_bed;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Doesn't save FLASH when FORCE_INLINE removed.
|
||||||
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
|
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
|
||||||
return target_temperature[extruder];
|
return target_temperature[extruder];
|
||||||
};
|
};
|
||||||
@ -148,11 +150,13 @@ FORCE_INLINE float degTargetBed() {
|
|||||||
return target_temperature_bed;
|
return target_temperature_bed;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Doesn't save FLASH when FORCE_INLINE removed.
|
||||||
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
|
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
|
||||||
target_temperature[extruder] = celsius;
|
target_temperature[extruder] = celsius;
|
||||||
resetPID(extruder);
|
resetPID(extruder);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Doesn't save FLASH when not inlined.
|
||||||
static inline void setTargetHotendSafe(const float &celsius, uint8_t extruder)
|
static inline void setTargetHotendSafe(const float &celsius, uint8_t extruder)
|
||||||
{
|
{
|
||||||
if (extruder<EXTRUDERS) {
|
if (extruder<EXTRUDERS) {
|
||||||
@ -161,6 +165,7 @@ static inline void setTargetHotendSafe(const float &celsius, uint8_t extruder)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Doesn't save FLASH when not inlined.
|
||||||
static inline void setAllTargetHotends(const float &celsius)
|
static inline void setAllTargetHotends(const float &celsius)
|
||||||
{
|
{
|
||||||
for(int i=0;i<EXTRUDERS;i++) setTargetHotend(celsius,i);
|
for(int i=0;i<EXTRUDERS;i++) setTargetHotend(celsius,i);
|
||||||
|
@ -142,8 +142,11 @@ uint16_t __tcoolthrs(uint8_t axis)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#ifdef PSU_Delta
|
||||||
|
void tmc2130_init(bool bSupressFlag)
|
||||||
|
#else
|
||||||
void tmc2130_init()
|
void tmc2130_init()
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// DBG(_n("tmc2130_init(), mode=%S\n"), tmc2130_mode?_n("STEALTH"):_n("NORMAL"));
|
// DBG(_n("tmc2130_init(), mode=%S\n"), tmc2130_mode?_n("STEALTH"):_n("NORMAL"));
|
||||||
WRITE(X_TMC2130_CS, HIGH);
|
WRITE(X_TMC2130_CS, HIGH);
|
||||||
@ -216,6 +219,11 @@ void tmc2130_init()
|
|||||||
tmc2130_set_wave(E_AXIS, 247, tmc2130_wave_fac[E_AXIS]);
|
tmc2130_set_wave(E_AXIS, 247, tmc2130_wave_fac[E_AXIS]);
|
||||||
#endif //TMC2130_LINEARITY_CORRECTION
|
#endif //TMC2130_LINEARITY_CORRECTION
|
||||||
|
|
||||||
|
#ifdef PSU_Delta
|
||||||
|
if(!bSupressFlag)
|
||||||
|
check_force_z();
|
||||||
|
#endif // PSU_Delta
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t tmc2130_sample_diag()
|
uint8_t tmc2130_sample_diag()
|
||||||
|
@ -51,7 +51,11 @@ typedef struct
|
|||||||
extern tmc2130_chopper_config_t tmc2130_chopper_config[4];
|
extern tmc2130_chopper_config_t tmc2130_chopper_config[4];
|
||||||
|
|
||||||
//initialize tmc2130
|
//initialize tmc2130
|
||||||
|
#ifdef PSU_Delta
|
||||||
|
extern void tmc2130_init(bool bSupressFlag=false);
|
||||||
|
#else
|
||||||
extern void tmc2130_init();
|
extern void tmc2130_init();
|
||||||
|
#endif
|
||||||
//check diag pins (called from stepper isr)
|
//check diag pins (called from stepper isr)
|
||||||
extern void tmc2130_st_isr();
|
extern void tmc2130_st_isr();
|
||||||
//update stall guard (called from st_synchronize inside the loop)
|
//update stall guard (called from st_synchronize inside the loop)
|
||||||
|
@ -307,7 +307,7 @@ bool wait_for_unclick;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool bMain; // flag (i.e. 'fake parameter') for 'lcd_sdcard_menu()' function
|
bool bMain; // flag (i.e. 'fake parameter') for 'lcd_sdcard_menu()' function
|
||||||
bool bSettings; // flag (i.e. 'fake parameter') for 'lcd_checkink_menu()' function
|
bool bSettings; // flag (i.e. 'fake parameter') for 'lcd_hw_setup_menu()' function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1658,6 +1658,7 @@ void lcd_pause_print()
|
|||||||
{
|
{
|
||||||
lcd_commands_type = LcdCommands::LongPause;
|
lcd_commands_type = LcdCommands::LongPause;
|
||||||
}
|
}
|
||||||
|
SERIAL_PROTOCOLLNRPGM(MSG_OCTOPRINT_PAUSE); //pause for octoprint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1965,7 +1966,6 @@ static void lcd_menu_debug()
|
|||||||
static void lcd_menu_temperatures()
|
static void lcd_menu_temperatures()
|
||||||
{
|
{
|
||||||
lcd_timeoutToStatus.stop(); //infinite timeout
|
lcd_timeoutToStatus.stop(); //infinite timeout
|
||||||
|
|
||||||
lcd_home();
|
lcd_home();
|
||||||
lcd_printf_P(PSTR(" %S: %d%c \n" " %S: %d%c \n"), _i("Nozzle"), (int)current_temperature[0], '\x01', _i("Bed"), (int)current_temperature_bed, '\x01');
|
lcd_printf_P(PSTR(" %S: %d%c \n" " %S: %d%c \n"), _i("Nozzle"), (int)current_temperature[0], '\x01', _i("Bed"), (int)current_temperature_bed, '\x01');
|
||||||
#ifdef AMBIENT_THERMISTOR
|
#ifdef AMBIENT_THERMISTOR
|
||||||
@ -2829,7 +2829,6 @@ void lcd_menu_statistics()
|
|||||||
"%S:\n"
|
"%S:\n"
|
||||||
"%2dh %02dm %02ds"
|
"%2dh %02dm %02ds"
|
||||||
),_i("Filament used"), _met, _i("Print time"), _h, _m, _s);
|
),_i("Filament used"), _met, _i("Print time"), _h, _m, _s);
|
||||||
|
|
||||||
menu_back_if_clicked_fb();
|
menu_back_if_clicked_fb();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2852,7 +2851,6 @@ void lcd_menu_statistics()
|
|||||||
"%S:\n"
|
"%S:\n"
|
||||||
"%7ldd :%2hhdh :%02hhdm"
|
"%7ldd :%2hhdh :%02hhdm"
|
||||||
), _i("Total filament"), _filament_m, _i("Total print time"), _days, _hours, _minutes);
|
), _i("Total filament"), _filament_m, _i("Total print time"), _days, _hours, _minutes);
|
||||||
|
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
while (!lcd_clicked())
|
while (!lcd_clicked())
|
||||||
{
|
{
|
||||||
@ -5487,18 +5485,27 @@ do\
|
|||||||
}\
|
}\
|
||||||
while (0)
|
while (0)
|
||||||
|
|
||||||
//-//static void lcd_checking_menu()
|
static void lcd_checking_menu(void)
|
||||||
void lcd_checking_menu()
|
|
||||||
{
|
{
|
||||||
MENU_BEGIN();
|
MENU_BEGIN();
|
||||||
MENU_ITEM_BACK_P(_T(bSettings?MSG_SETTINGS:MSG_BACK)); // i.e. default menu-item / menu-item after checking mismatch
|
MENU_ITEM_BACK_P(_T(MSG_HW_SETUP));
|
||||||
SETTINGS_NOZZLE;
|
|
||||||
MENU_ITEM_TEXT_P(STR_SEPARATOR);
|
|
||||||
MENU_ITEM_TEXT_P(_i("Checks:"));
|
|
||||||
SETTINGS_MODE;
|
SETTINGS_MODE;
|
||||||
SETTINGS_MODEL;
|
SETTINGS_MODEL;
|
||||||
SETTINGS_VERSION;
|
SETTINGS_VERSION;
|
||||||
SETTINGS_GCODE;
|
//-// temporarily disabled
|
||||||
|
//SETTINGS_GCODE;
|
||||||
|
MENU_END();
|
||||||
|
}
|
||||||
|
|
||||||
|
void lcd_hw_setup_menu(void) // can not be "static"
|
||||||
|
{
|
||||||
|
MENU_BEGIN();
|
||||||
|
MENU_ITEM_BACK_P(_T(bSettings?MSG_SETTINGS:MSG_BACK)); // i.e. default menu-item / menu-item after checking mismatch
|
||||||
|
if(!farm_mode)
|
||||||
|
SETTINGS_NOZZLE;
|
||||||
|
// ... a sem prijdou 'plechy'
|
||||||
|
if(!farm_mode)
|
||||||
|
MENU_ITEM_SUBMENU_P(_i("Checks"), lcd_checking_menu);
|
||||||
MENU_END();
|
MENU_END();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5526,6 +5533,10 @@ static void lcd_settings_menu()
|
|||||||
MENU_ITEM_FUNCTION_P(_i("Fans check [off]"), lcd_set_fan_check);////MSG_FANS_CHECK_OFF c=17 r=1
|
MENU_ITEM_FUNCTION_P(_i("Fans check [off]"), lcd_set_fan_check);////MSG_FANS_CHECK_OFF c=17 r=1
|
||||||
|
|
||||||
SETTINGS_SILENT_MODE;
|
SETTINGS_SILENT_MODE;
|
||||||
|
|
||||||
|
bSettings=true; // flag ('fake parameter') for 'lcd_hw_setup_menu()' function
|
||||||
|
MENU_ITEM_SUBMENU_P(_i("HW Setup"), lcd_hw_setup_menu);////MSG_HW_SETUP
|
||||||
|
|
||||||
SETTINGS_MMU_MODE;
|
SETTINGS_MMU_MODE;
|
||||||
|
|
||||||
MENU_ITEM_SUBMENU_P(_i("Mesh bed leveling"), lcd_mesh_bed_leveling_settings);////MSG_MBL_SETTINGS c=18 r=1
|
MENU_ITEM_SUBMENU_P(_i("Mesh bed leveling"), lcd_mesh_bed_leveling_settings);////MSG_MBL_SETTINGS c=18 r=1
|
||||||
@ -5553,12 +5564,6 @@ static void lcd_settings_menu()
|
|||||||
MENU_ITEM_SUBMENU_P(_i("Select language"), lcd_language_menu);////MSG_LANGUAGE_SELECT
|
MENU_ITEM_SUBMENU_P(_i("Select language"), lcd_language_menu);////MSG_LANGUAGE_SELECT
|
||||||
#endif //(LANG_MODE != 0)
|
#endif //(LANG_MODE != 0)
|
||||||
|
|
||||||
if (!farm_mode)
|
|
||||||
{
|
|
||||||
bSettings=true; // flag ('fake parameter') for 'lcd_checking_menu()' function
|
|
||||||
MENU_ITEM_SUBMENU_P(_i("Print checking"), lcd_checking_menu);
|
|
||||||
}
|
|
||||||
|
|
||||||
SETTINGS_SD;
|
SETTINGS_SD;
|
||||||
SETTINGS_SOUND;
|
SETTINGS_SOUND;
|
||||||
|
|
||||||
@ -6595,7 +6600,11 @@ static void lcd_main_menu()
|
|||||||
if(fan_check_error == EFCE_OK)
|
if(fan_check_error == EFCE_OK)
|
||||||
MENU_ITEM_SUBMENU_P(_i("Resume print"), lcd_resume_print);////MSG_RESUME_PRINT
|
MENU_ITEM_SUBMENU_P(_i("Resume print"), lcd_resume_print);////MSG_RESUME_PRINT
|
||||||
#else
|
#else
|
||||||
|
<<<<<<< HEAD
|
||||||
MENU_ITEM_SUBMENU_P(_i("Resume print"), lcd_resume_print);////MSG_RESUME_PRINT
|
MENU_ITEM_SUBMENU_P(_i("Resume print"), lcd_resume_print);////MSG_RESUME_PRINT
|
||||||
|
=======
|
||||||
|
MENU_ITEM_SUBMENU_P(_i("Resume print"), lcd_resume_print);////MSG_RESUME_PRINT
|
||||||
|
>>>>>>> upstream/MK3
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -6945,7 +6954,6 @@ void lcd_print_stop()
|
|||||||
if(!card.sdprinting)
|
if(!card.sdprinting)
|
||||||
{
|
{
|
||||||
SERIAL_ECHOLNPGM("// action:cancel"); // for Octoprint
|
SERIAL_ECHOLNPGM("// action:cancel"); // for Octoprint
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
saved_printing = false;
|
saved_printing = false;
|
||||||
cancel_heatup = true;
|
cancel_heatup = true;
|
||||||
|
@ -7,9 +7,6 @@
|
|||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "mesh_bed_calibration.h"
|
#include "mesh_bed_calibration.h"
|
||||||
|
|
||||||
extern int lcd_puts_P(const char* str);
|
|
||||||
extern int lcd_printf_P(const char* format, ...);
|
|
||||||
|
|
||||||
extern void menu_lcd_longpress_func(void);
|
extern void menu_lcd_longpress_func(void);
|
||||||
extern void menu_lcd_charsetup_func(void);
|
extern void menu_lcd_charsetup_func(void);
|
||||||
extern void menu_lcd_lcdupdate_func(void);
|
extern void menu_lcd_lcdupdate_func(void);
|
||||||
@ -143,7 +140,8 @@ void lcd_ignore_click(bool b=true);
|
|||||||
void lcd_commands();
|
void lcd_commands();
|
||||||
|
|
||||||
|
|
||||||
extern bool bSettings; // flag (i.e. 'fake parameter') for 'lcd_checkink_menu()' function
|
extern bool bSettings; // flag (i.e. 'fake parameter') for 'lcd_hw_setup_menu()' function
|
||||||
|
void lcd_hw_setup_menu(void); // NOT static due to using inside "util" module ("nozzle_diameter_check()")
|
||||||
|
|
||||||
|
|
||||||
void change_extr(int extr);
|
void change_extr(int extr);
|
||||||
|
@ -324,7 +324,7 @@ void update_current_firmware_version_to_eeprom()
|
|||||||
|
|
||||||
|
|
||||||
//-//
|
//-//
|
||||||
void lcd_checking_menu(void);
|
#define MSG_PRINT_CHECKING_FAILED_TIMEOUT 30
|
||||||
|
|
||||||
ClNozzleDiameter oNozzleDiameter=ClNozzleDiameter::_Diameter_400;
|
ClNozzleDiameter oNozzleDiameter=ClNozzleDiameter::_Diameter_400;
|
||||||
ClCheckMode oCheckMode=ClCheckMode::_None;
|
ClCheckMode oCheckMode=ClCheckMode::_None;
|
||||||
@ -379,7 +379,7 @@ nDiameter_um=eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM);
|
|||||||
if(nDiameter==nDiameter_um)
|
if(nDiameter==nDiameter_um)
|
||||||
return;
|
return;
|
||||||
//SERIAL_ECHO_START;
|
//SERIAL_ECHO_START;
|
||||||
//SERIAL_ECHOLNPGM("Nozzle diameter doesn't match ...");
|
//SERIAL_ECHOLNPGM("Printer nozzle diameter differs from the G-code ...");
|
||||||
//SERIAL_ECHOPGM("actual : ");
|
//SERIAL_ECHOPGM("actual : ");
|
||||||
//SERIAL_ECHOLN((float)(nDiameter_um/1000.0));
|
//SERIAL_ECHOLN((float)(nDiameter_um/1000.0));
|
||||||
//SERIAL_ECHOPGM("expected: ");
|
//SERIAL_ECHOPGM("expected: ");
|
||||||
@ -387,15 +387,22 @@ if(nDiameter==nDiameter_um)
|
|||||||
switch(oCheckMode)
|
switch(oCheckMode)
|
||||||
{
|
{
|
||||||
case ClCheckMode::_Warn:
|
case ClCheckMode::_Warn:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("Nozzle diameter doesn't match! Press the knob to continue."));
|
// lcd_show_fullscreen_message_and_wait_P(_i("Printer nozzle diameter differs from the G-code. Continue?"));
|
||||||
|
lcd_display_message_fullscreen_P(_i("Printer nozzle diameter differs from the G-code. Continue?"));
|
||||||
|
lcd_wait_for_click_delay(MSG_PRINT_CHECKING_FAILED_TIMEOUT);
|
||||||
|
//???custom_message_type=CUSTOM_MSG_TYPE_STATUS; // display / status-line recovery
|
||||||
|
lcd_update_enable(true); // display / status-line recovery
|
||||||
break;
|
break;
|
||||||
case ClCheckMode::_Strict:
|
case ClCheckMode::_Strict:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("Nozzle diameter doesn't match! Print is aborted, press the knob."));
|
lcd_show_fullscreen_message_and_wait_P(_i("Printer nozzle diameter differs from the G-code. Please check the value in settings. Print cancelled."));
|
||||||
lcd_print_stop();
|
lcd_print_stop();
|
||||||
break;
|
break;
|
||||||
|
case ClCheckMode::_None:
|
||||||
|
case ClCheckMode::_Undef:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
bSettings=false; // flag ('fake parameter') for 'lcd_checking_menu()' function
|
bSettings=false; // flag ('fake parameter') for 'lcd_hw_setup_menu()' function
|
||||||
menu_submenu(lcd_checking_menu);
|
menu_submenu(lcd_hw_setup_menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
void printer_model_check(uint16_t nPrinterModel)
|
void printer_model_check(uint16_t nPrinterModel)
|
||||||
@ -405,7 +412,7 @@ if(oCheckModel==ClCheckModel::_None)
|
|||||||
if(nPrinterModel==nPrinterType)
|
if(nPrinterModel==nPrinterType)
|
||||||
return;
|
return;
|
||||||
//SERIAL_ECHO_START;
|
//SERIAL_ECHO_START;
|
||||||
//SERIAL_ECHOLNPGM("Printer model doesn't match ...");
|
//SERIAL_ECHOLNPGM("Printer model differs from the G-code ...");
|
||||||
//SERIAL_ECHOPGM("actual : ");
|
//SERIAL_ECHOPGM("actual : ");
|
||||||
//SERIAL_ECHOLN(nPrinterType);
|
//SERIAL_ECHOLN(nPrinterType);
|
||||||
//SERIAL_ECHOPGM("expected: ");
|
//SERIAL_ECHOPGM("expected: ");
|
||||||
@ -413,12 +420,19 @@ if(nPrinterModel==nPrinterType)
|
|||||||
switch(oCheckModel)
|
switch(oCheckModel)
|
||||||
{
|
{
|
||||||
case ClCheckModel::_Warn:
|
case ClCheckModel::_Warn:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("Printer model doesn't match! Press the knob to continue."));
|
// lcd_show_fullscreen_message_and_wait_P(_i("Printer model differs from the G-code. Continue?"));
|
||||||
|
lcd_display_message_fullscreen_P(_i("Printer model differs from the G-code. Continue?"));
|
||||||
|
lcd_wait_for_click_delay(MSG_PRINT_CHECKING_FAILED_TIMEOUT);
|
||||||
|
//???custom_message_type=CUSTOM_MSG_TYPE_STATUS; // display / status-line recovery
|
||||||
|
lcd_update_enable(true); // display / status-line recovery
|
||||||
break;
|
break;
|
||||||
case ClCheckModel::_Strict:
|
case ClCheckModel::_Strict:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("Printer model doesn't match! Print is aborted, press the knob."));
|
lcd_show_fullscreen_message_and_wait_P(_i("Printer model differs from the G-code. Please check the value in settings. Print cancelled."));
|
||||||
lcd_print_stop();
|
lcd_print_stop();
|
||||||
break;
|
break;
|
||||||
|
case ClCheckModel::_None:
|
||||||
|
case ClCheckModel::_Undef:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -448,7 +462,7 @@ if(nCompareValueResult==COMPARE_VALUE_EQUAL)
|
|||||||
if((nCompareValueResult<COMPARE_VALUE_EQUAL)&&oCheckVersion==ClCheckVersion::_Warn)
|
if((nCompareValueResult<COMPARE_VALUE_EQUAL)&&oCheckVersion==ClCheckVersion::_Warn)
|
||||||
return;
|
return;
|
||||||
//SERIAL_ECHO_START;
|
//SERIAL_ECHO_START;
|
||||||
//SERIAL_ECHOLNPGM("FW version doesn't match ...");
|
//SERIAL_ECHOLNPGM("Printer FW version differs from the G-code ...");
|
||||||
//SERIAL_ECHOPGM("actual : ");
|
//SERIAL_ECHOPGM("actual : ");
|
||||||
//SERIAL_ECHOLN(FW_VERSION);
|
//SERIAL_ECHOLN(FW_VERSION);
|
||||||
//SERIAL_ECHOPGM("expected: ");
|
//SERIAL_ECHOPGM("expected: ");
|
||||||
@ -456,12 +470,19 @@ if((nCompareValueResult<COMPARE_VALUE_EQUAL)&&oCheckVersion==ClCheckVersion::_Wa
|
|||||||
switch(oCheckVersion)
|
switch(oCheckVersion)
|
||||||
{
|
{
|
||||||
case ClCheckVersion::_Warn:
|
case ClCheckVersion::_Warn:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("FW version doesn't match! Press the knob to continue."));
|
// lcd_show_fullscreen_message_and_wait_P(_i("Printer FW version differs from the G-code. Continue?"));
|
||||||
|
lcd_display_message_fullscreen_P(_i("Printer FW version differs from the G-code. Continue?"));
|
||||||
|
lcd_wait_for_click_delay(MSG_PRINT_CHECKING_FAILED_TIMEOUT);
|
||||||
|
//???custom_message_type=CUSTOM_MSG_TYPE_STATUS; // display / status-line recovery
|
||||||
|
lcd_update_enable(true); // display / status-line recovery
|
||||||
break;
|
break;
|
||||||
case ClCheckVersion::_Strict:
|
case ClCheckVersion::_Strict:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("FW version doesn't match! Print is aborted, press the knob."));
|
lcd_show_fullscreen_message_and_wait_P(_i("Printer FW version differs from the G-code. Please check the value in settings. Print cancelled."));
|
||||||
lcd_print_stop();
|
lcd_print_stop();
|
||||||
break;
|
break;
|
||||||
|
case ClCheckVersion::_None:
|
||||||
|
case ClCheckVersion::_Undef:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -474,7 +495,7 @@ if(nGcodeLevel==(uint16_t)GCODE_LEVEL)
|
|||||||
if((nGcodeLevel<(uint16_t)GCODE_LEVEL)&&(oCheckGcode==ClCheckGcode::_Warn))
|
if((nGcodeLevel<(uint16_t)GCODE_LEVEL)&&(oCheckGcode==ClCheckGcode::_Warn))
|
||||||
return;
|
return;
|
||||||
//SERIAL_ECHO_START;
|
//SERIAL_ECHO_START;
|
||||||
//SERIAL_ECHOLNPGM("G-code level doesn't match ...");
|
//SERIAL_ECHOLNPGM("Printer G-code level differs from the G-code ...");
|
||||||
//SERIAL_ECHOPGM("actual : ");
|
//SERIAL_ECHOPGM("actual : ");
|
||||||
//SERIAL_ECHOLN(GCODE_LEVEL);
|
//SERIAL_ECHOLN(GCODE_LEVEL);
|
||||||
//SERIAL_ECHOPGM("expected: ");
|
//SERIAL_ECHOPGM("expected: ");
|
||||||
@ -482,12 +503,19 @@ if((nGcodeLevel<(uint16_t)GCODE_LEVEL)&&(oCheckGcode==ClCheckGcode::_Warn))
|
|||||||
switch(oCheckGcode)
|
switch(oCheckGcode)
|
||||||
{
|
{
|
||||||
case ClCheckGcode::_Warn:
|
case ClCheckGcode::_Warn:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("G-code level doesn't match! Press the knob to continue."));
|
// lcd_show_fullscreen_message_and_wait_P(_i("Printer G-code level differs from the G-code. Continue?"));
|
||||||
|
lcd_display_message_fullscreen_P(_i("Printer G-code level differs from the G-code. Continue?"));
|
||||||
|
lcd_wait_for_click_delay(MSG_PRINT_CHECKING_FAILED_TIMEOUT);
|
||||||
|
//???custom_message_type=CUSTOM_MSG_TYPE_STATUS; // display / status-line recovery
|
||||||
|
lcd_update_enable(true); // display / status-line recovery
|
||||||
break;
|
break;
|
||||||
case ClCheckGcode::_Strict:
|
case ClCheckGcode::_Strict:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("G-code level doesn't match! Print is aborted, press the knob."));
|
lcd_show_fullscreen_message_and_wait_P(_i("Printer G-code level differs from the G-code. Please check the value in settings. Print cancelled."));
|
||||||
lcd_print_stop();
|
lcd_print_stop();
|
||||||
break;
|
break;
|
||||||
|
case ClCheckGcode::_None:
|
||||||
|
case ClCheckGcode::_Undef:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -531,7 +559,7 @@ if(pResult!=NULL)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//SERIAL_ECHO_START;
|
//SERIAL_ECHO_START;
|
||||||
//SERIAL_ECHOLNPGM("Printer model doesn't match ...");
|
//SERIAL_ECHOLNPGM("Printer model differs from the G-code ...");
|
||||||
//SERIAL_ECHOPGM("actual : \"");
|
//SERIAL_ECHOPGM("actual : \"");
|
||||||
//serialprintPGM(::sPrinterName);
|
//serialprintPGM(::sPrinterName);
|
||||||
//SERIAL_ECHOLNPGM("\"");
|
//SERIAL_ECHOLNPGM("\"");
|
||||||
@ -541,12 +569,19 @@ if(pResult!=NULL)
|
|||||||
switch(oCheckModel)
|
switch(oCheckModel)
|
||||||
{
|
{
|
||||||
case ClCheckModel::_Warn:
|
case ClCheckModel::_Warn:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("Printer model doesn't match! Press the knob to continue."));
|
// lcd_show_fullscreen_message_and_wait_P(_i("Printer model differs from the G-code. Continue?"));
|
||||||
|
lcd_display_message_fullscreen_P(_i("Printer model differs from the G-code. Continue?"));
|
||||||
|
lcd_wait_for_click_delay(MSG_PRINT_CHECKING_FAILED_TIMEOUT);
|
||||||
|
//???custom_message_type=CUSTOM_MSG_TYPE_STATUS; // display / status-line recovery
|
||||||
|
lcd_update_enable(true); // display / status-line recovery
|
||||||
break;
|
break;
|
||||||
case ClCheckModel::_Strict:
|
case ClCheckModel::_Strict:
|
||||||
lcd_show_fullscreen_message_and_wait_P(_i("Printer model doesn't match! Print is aborted, press the knob."));
|
lcd_show_fullscreen_message_and_wait_P(_i("Printer model differs from the G-code. Please check the value in settings. Print cancelled."));
|
||||||
lcd_print_stop();
|
lcd_print_stop();
|
||||||
break;
|
break;
|
||||||
|
case ClCheckModel::_None:
|
||||||
|
case ClCheckModel::_Undef:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,9 @@
|
|||||||
#define STEEL_SHEET
|
#define STEEL_SHEET
|
||||||
#define HAS_SECOND_SERIAL_PORT
|
#define HAS_SECOND_SERIAL_PORT
|
||||||
|
|
||||||
|
// PSU
|
||||||
|
#define PSU_Delta // uncomment if DeltaElectronics PSU installed
|
||||||
|
|
||||||
|
|
||||||
// Uncomment the below for the E3D PT100 temperature sensor (with or without PT100 Amplifier)
|
// Uncomment the below for the E3D PT100 temperature sensor (with or without PT100 Amplifier)
|
||||||
//#define E3D_PT100_EXTRUDER_WITH_AMP
|
//#define E3D_PT100_EXTRUDER_WITH_AMP
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
"[0;0] point offset"
|
"[0;0] point offset"
|
||||||
|
|
||||||
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
||||||
"\x1b[2JCrash detection can\x1b[1;0Hbe turned on only in\x1b[2;0HNormal mode"
|
"Crash detection can\rbe turned on only in\rNormal mode"
|
||||||
|
|
||||||
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
||||||
"\x1b[2JWARNING:\x1b[1;0HCrash detection\x1b[2;0Hdisabled in\x1b[3;0HStealth mode"
|
"WARNING:\rCrash detection\rdisabled in\rStealth mode"
|
||||||
|
|
||||||
#
|
#
|
||||||
">Cancel"
|
">Cancel"
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"[0;0] odsazeni bodu"
|
"[0;0] odsazeni bodu"
|
||||||
|
|
||||||
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
||||||
"\x1b[2JCrash detection can\x1b[1;0Hbe turned on only in\x1b[2;0HNormal mode"
|
"Crash detection can\rbe turned on only in\rNormal mode"
|
||||||
"\x1b[2JCrash detekce muze\x1b[1;0Hbyt zapnuta pouze v\x1b[2;0HNormal modu"
|
"Crash detekce muze\rbyt zapnuta pouze v\rNormal modu"
|
||||||
|
|
||||||
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
||||||
"\x1b[2JWARNING:\x1b[1;0HCrash detection\x1b[2;0Hdisabled in\x1b[3;0HStealth mode"
|
"WARNING:\rCrash detection\rdisabled in\rStealth mode"
|
||||||
"\x1b[2JPOZOR:\x1b[1;0HCrash detekce\x1b[2;0Hdeaktivovana ve\x1b[3;0HStealth modu"
|
"POZOR:\rCrash detekce\rdeaktivovana ve\rStealth modu"
|
||||||
|
|
||||||
#
|
#
|
||||||
">Cancel"
|
">Cancel"
|
||||||
@ -828,7 +828,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
"Press the knob"
|
"Press the knob"
|
||||||
"Stisknete hl. tlacitko"
|
"Stisknete tlacitko"
|
||||||
|
|
||||||
#MSG_PRINT_PAUSED c=20 r=1
|
#MSG_PRINT_PAUSED c=20 r=1
|
||||||
"Print paused"
|
"Print paused"
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"[0;0] Punktversatz"
|
"[0;0] Punktversatz"
|
||||||
|
|
||||||
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
||||||
"\x1b[2JCrash detection can\x1b[1;0Hbe turned on only in\x1b[2;0HNormal mode"
|
"Crash detection can\rbe turned on only in\rNormal mode"
|
||||||
"\x1b[2JCrash Erkennung kann\x1b[1;0Hnur im Modus Normal\x1b[2;0Hgenutzt werden"
|
"Crash Erkennung kann\rnur im Modus Normal\rgenutzt werden"
|
||||||
|
|
||||||
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
||||||
"\x1b[2JWARNING:\x1b[1;0HCrash detection\x1b[2;0Hdisabled in\x1b[3;0HStealth mode"
|
"WARNING:\rCrash detection\rdisabled in\rStealth mode"
|
||||||
"\x1b[2JWARNUNG:\x1b[1;0HCrash Erkennung\x1b[2;0Hdeaktiviert im\x1b[3;0HStealth Modus"
|
"WARNUNG:\rCrash Erkennung\rdeaktiviert im\rStealth Modus"
|
||||||
|
|
||||||
#
|
#
|
||||||
">Cancel"
|
">Cancel"
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"[0;0] punto offset"
|
"[0;0] punto offset"
|
||||||
|
|
||||||
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
||||||
"\x1b[2JCrash detection can\x1b[1;0Hbe turned on only in\x1b[2;0HNormal mode"
|
"Crash detection can\rbe turned on only in\rNormal mode"
|
||||||
"\x1b[2JDec. choque\x1b[1;0Hpuede ser activada solo en\x1b[2;0HModo normal"
|
"Dec. choque\rpuede ser activada solo en\rModo normal"
|
||||||
|
|
||||||
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
||||||
"\x1b[2JWARNING:\x1b[1;0HCrash detection\x1b[2;0Hdisabled in\x1b[3;0HStealth mode"
|
"WARNING:\rCrash detection\rdisabled in\rStealth mode"
|
||||||
"\x1b[2JATENCION:\x1b[1;0HDec. choque\x1b[2;0Hdesactivada en\x1b[3;0HModo silencio"
|
"ATENCION:\rDec. choque\rdesactivada en\rModo silencio"
|
||||||
|
|
||||||
#
|
#
|
||||||
">Cancel"
|
">Cancel"
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"Offset point [0;0]"
|
"Offset point [0;0]"
|
||||||
|
|
||||||
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
||||||
"\x1b[2JCrash detection can\x1b[1;0Hbe turned on only in\x1b[2;0HNormal mode"
|
"Crash detection can\rbe turned on only in\rNormal mode"
|
||||||
"\x1b[2JLa detection de crash peut etre\x1b[1;0Hactive seulement\x1b[2;0Hen mode Normal"
|
"La detection de crash peut etre\ractive seulement\ren mode Normal"
|
||||||
|
|
||||||
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
||||||
"\x1b[2JWARNING:\x1b[1;0HCrash detection\x1b[2;0Hdisabled in\x1b[3;0HStealth mode"
|
"WARNING:\rCrash detection\rdisabled in\rStealth mode"
|
||||||
"\x1b[2JATTENTION :\x1b[1;0HDetection de crash\x1b[2;0H desactivee en\x1b[3;0Hmode Furtif"
|
"ATTENTION :\rDetection de crash\r desactivee en\rmode Furtif"
|
||||||
|
|
||||||
#
|
#
|
||||||
">Cancel"
|
">Cancel"
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"[0;0] punto offset"
|
"[0;0] punto offset"
|
||||||
|
|
||||||
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
||||||
"\x1b[2JCrash detection can\x1b[1;0Hbe turned on only in\x1b[2;0HNormal mode"
|
"Crash detection can\rbe turned on only in\rNormal mode"
|
||||||
"\x1b[2JRilev. impatto\x1b[1;0Hattivabile solo\x1b[2;0Hin Modalita normale"
|
"Rilev. impatto\rattivabile solo\rin Modalita normale"
|
||||||
|
|
||||||
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
||||||
"\x1b[2JWARNING:\x1b[1;0HCrash detection\x1b[2;0Hdisabled in\x1b[3;0HStealth mode"
|
"WARNING:\rCrash detection\rdisabled in\rStealth mode"
|
||||||
"\x1b[2JATTENZIONE:\x1b[1;0HRilev. impatto\x1b[2;0Hdisattivato in\x1b[3;0HModalita silenziosa"
|
"ATTENZIONE:\rRilev. impatto\rdisattivato in\rModalita silenziosa"
|
||||||
|
|
||||||
#
|
#
|
||||||
">Cancel"
|
">Cancel"
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"[0;0] przesuniecie punktu"
|
"[0;0] przesuniecie punktu"
|
||||||
|
|
||||||
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
#MSG_CRASH_DET_ONLY_IN_NORMAL c=20 r=4
|
||||||
"\x1b[2JCrash detection can\x1b[1;0Hbe turned on only in\x1b[2;0HNormal mode"
|
"Crash detection can\rbe turned on only in\rNormal mode"
|
||||||
"\x1b[2JWykrywanie zderzen moze\x1b[1;0Hbyc wlaczone tylko w\x1b[2;0Htrybie Normalnym"
|
"Wykrywanie zderzen moze\rbyc wlaczone tylko w\rtrybie Normalnym"
|
||||||
|
|
||||||
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
#MSG_CRASH_DET_STEALTH_FORCE_OFF c=20 r=4
|
||||||
"\x1b[2JWARNING:\x1b[1;0HCrash detection\x1b[2;0Hdisabled in\x1b[3;0HStealth mode"
|
"WARNING:\rCrash detection\rdisabled in\rStealth mode"
|
||||||
"\x1b[2JUWAGA:\x1b[1;0HWykrywanie zderzen\x1b[2;0Hwylaczone w\x1b[3;0Htrybie Stealth"
|
"UWAGA:\rWykrywanie zderzen\rwylaczone w\rtrybie Stealth"
|
||||||
|
|
||||||
#
|
#
|
||||||
">Cancel"
|
">Cancel"
|
||||||
|
Loading…
Reference in New Issue
Block a user