2016-03-25 01:19:46 -05:00
|
|
|
/**
|
2016-03-24 13:01:20 -05:00
|
|
|
* Marlin 3D Printer Firmware
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2016-03-24 13:01:20 -05:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2016-03-24 13:01:20 -05:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-07-04 22:44:12 -05:00
|
|
|
#pragma once
|
2016-03-24 13:01:20 -05:00
|
|
|
|
2016-03-25 01:19:46 -05:00
|
|
|
/**
|
2018-10-27 22:06:25 -05:00
|
|
|
* Standard Marlin Status Screen bitmaps
|
2016-07-18 21:16:30 -05:00
|
|
|
*
|
2018-01-31 18:43:33 -06:00
|
|
|
* Use the Marlin Bitmap Converter to make your own:
|
|
|
|
* http://marlinfw.org/tools/u8glib/converter.html
|
2016-03-24 13:01:20 -05:00
|
|
|
*/
|
|
|
|
|
2018-01-31 18:43:33 -06:00
|
|
|
#include "../../inc/MarlinConfig.h"
|
2019-09-07 04:52:57 -05:00
|
|
|
#include "ultralcd_DOGM.h"
|
2015-02-03 02:52:29 -06:00
|
|
|
|
2018-11-27 21:15:52 -06:00
|
|
|
#define BW(N) ((N + 7) / 8)
|
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#if ENABLED(CUSTOM_STATUS_SCREEN_IMAGE) && DISABLED(STATUS_COMBINE_HEATERS)
|
2018-01-15 03:14:23 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#undef STATUS_HEATERS_X
|
|
|
|
#undef STATUS_BED_X
|
2018-10-27 22:06:25 -05:00
|
|
|
/**
|
2018-11-20 07:36:37 -06:00
|
|
|
* Custom _Statusscreen.h files can define:
|
|
|
|
* - A custom logo image
|
|
|
|
* - A custom heater bitmap
|
|
|
|
* - A custom fan bitmap / animation
|
2018-10-27 22:06:25 -05:00
|
|
|
*
|
2018-11-20 07:36:37 -06:00
|
|
|
* See the included examples for guidance
|
2018-10-27 22:06:25 -05:00
|
|
|
*/
|
2018-02-23 09:06:00 -06:00
|
|
|
#include "../../../_Statusscreen.h"
|
2018-01-15 05:54:44 -06:00
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
#ifdef STATUS_SCREENWIDTH
|
|
|
|
#error "Your custom _Statusscreen.h needs to be converted for Marlin 2.0."
|
|
|
|
#endif
|
|
|
|
|
2018-11-23 23:14:56 -06:00
|
|
|
#endif
|
2018-01-31 18:43:33 -06:00
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
//
|
|
|
|
// Default Status Screen Heater or Hotends bitmaps
|
|
|
|
//
|
|
|
|
#if !STATUS_HEATERS_WIDTH && !STATUS_HOTEND1_WIDTH
|
2018-05-08 09:06:01 -05:00
|
|
|
|
2018-11-27 21:15:52 -06:00
|
|
|
#if ENABLED(STATUS_COMBINE_HEATERS)
|
2018-05-08 09:06:01 -05:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#undef STATUS_HOTEND_ANIM
|
|
|
|
#undef STATUS_BED_ANIM
|
|
|
|
#define STATUS_HEATERS_XSPACE 24
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
//
|
|
|
|
// Status Screen Combined Heater bitmaps
|
|
|
|
//
|
2019-09-07 04:52:57 -05:00
|
|
|
#if HAS_HEATED_BED && HOTENDS <= 4
|
2018-05-08 09:06:01 -05:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#if HOTENDS == 1
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_HEATERS_WIDTH 96
|
|
|
|
#define STATUS_BED_TEXT_X (STATUS_HEATERS_WIDTH - 10)
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
2018-12-09 11:59:58 -06:00
|
|
|
B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
|
|
|
|
B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
|
|
|
|
B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
|
|
|
|
B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
|
2018-12-09 11:59:58 -06:00
|
|
|
B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
|
|
|
|
B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00001111,B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
|
2018-12-09 11:59:58 -06:00
|
|
|
B00000111,B10000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000,
|
|
|
|
B00000011,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000
|
2018-05-08 09:06:01 -05:00
|
|
|
};
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#elif HOTENDS == 2
|
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_HEATERS_WIDTH 96
|
|
|
|
#define STATUS_BED_TEXT_X (STATUS_HEATERS_WIDTH - 10)
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
2018-12-09 11:59:58 -06:00
|
|
|
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
|
|
|
|
B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
|
|
|
|
B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
|
|
|
|
B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
|
|
|
|
B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
|
2018-12-09 11:59:58 -06:00
|
|
|
B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000,
|
|
|
|
B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000
|
2018-05-08 09:06:01 -05:00
|
|
|
};
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#elif HOTENDS == 3
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_HEATERS_WIDTH 96
|
|
|
|
#define STATUS_BED_TEXT_X (STATUS_HEATERS_WIDTH - 10)
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
2018-12-09 11:59:58 -06:00
|
|
|
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,B00000000,B00000010,B00001000,B00100000,
|
|
|
|
B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00000010,B00001000,B00100000,
|
|
|
|
B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,B00000000,B00001000,B00100000,B10000000,
|
|
|
|
B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,B00000000,B00010000,B01000001,B00000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,B00000000,B00010000,B01000001,B00000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,B00000000,B00001000,B00100000,B10000000,
|
|
|
|
B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00000100,B00010000,B01000000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00000000,B00000000,B00000000,
|
2018-12-09 11:59:58 -06:00
|
|
|
B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00011111,B11111111,B11111000,
|
|
|
|
B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00011111,B11111111,B11111000
|
2018-05-08 09:06:01 -05:00
|
|
|
};
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#else // HOTENDS > 3
|
|
|
|
|
|
|
|
#define STATUS_HEATERS_WIDTH 120
|
|
|
|
#define STATUS_BED_TEXT_X (STATUS_HEATERS_WIDTH - 10)
|
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00000010,B00001000,B00100000,
|
|
|
|
B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00000010,B00001000,B00100000,
|
|
|
|
B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,B00000000,B00111011,B01110000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,B00000000,B00011011,B01100000,B00000000,B00001000,B00100000,B10000000,
|
|
|
|
B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,B00000000,B00011000,B00100000,B00000000,B00010000,B01000001,B00000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,B00000000,B00111111,B01110000,B00000000,B00010000,B01000001,B00000000,
|
|
|
|
B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,B00000000,B00111111,B01110000,B00000000,B00001000,B00100000,B10000000,
|
|
|
|
B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00000100,B00010000,B01000000,
|
|
|
|
B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00000000,B00000000,B00000000,
|
|
|
|
B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00011111,B11111111,B11111000,
|
|
|
|
B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00011111,B11111111,B11111000
|
|
|
|
};
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif // HOTENDS
|
|
|
|
|
|
|
|
#else // !HAS_HEATED_BED || HOTENDS > 3
|
|
|
|
|
|
|
|
#if HOTENDS == 1
|
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_HEATERS_WIDTH 12
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00011111,B11100000,
|
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
2018-05-08 09:06:01 -05:00
|
|
|
};
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#elif HOTENDS == 2
|
|
|
|
|
|
|
|
#define STATUS_HEATERS_WIDTH 36
|
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,B00000000,B00011111,B11100000,
|
|
|
|
B00111110,B11110000,B00000000,B00111100,B11110000,
|
|
|
|
B00111100,B11110000,B00000000,B00111011,B01110000,
|
|
|
|
B00111010,B11110000,B00000000,B00111111,B01110000,
|
|
|
|
B00011110,B11100000,B00000000,B00011110,B11100000,
|
|
|
|
B00011110,B11100000,B00000000,B00011101,B11100000,
|
|
|
|
B00111110,B11110000,B00000000,B00111011,B11110000,
|
|
|
|
B00111110,B11110000,B00000000,B00111000,B01110000,
|
|
|
|
B00111111,B11110000,B00000000,B00111111,B11110000,
|
|
|
|
B00001111,B11000000,B00000000,B00001111,B11000000,
|
|
|
|
B00000111,B10000000,B00000000,B00000111,B10000000,
|
|
|
|
B00000011,B00000000,B00000000,B00000011,B00000000
|
2018-05-08 09:06:01 -05:00
|
|
|
};
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
#elif HOTENDS == 3
|
|
|
|
|
|
|
|
#define STATUS_HEATERS_WIDTH 60
|
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,
|
|
|
|
B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,
|
|
|
|
B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,
|
|
|
|
B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,
|
|
|
|
B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,
|
|
|
|
B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,
|
|
|
|
B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,
|
|
|
|
B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,
|
|
|
|
B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,
|
|
|
|
B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,
|
|
|
|
B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,
|
|
|
|
B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000
|
2018-10-08 01:27:21 -05:00
|
|
|
};
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#elif HOTENDS == 4
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#define STATUS_HEATERS_WIDTH 84
|
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,
|
|
|
|
B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,B00000000,B00111011,B01110000,
|
|
|
|
B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,
|
|
|
|
B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,B00000000,B00111011,B01110000,
|
|
|
|
B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,B00000000,B00011011,B01100000,
|
|
|
|
B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,B00000000,B00011000,B00100000,
|
|
|
|
B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,B00000000,B00111111,B01110000,
|
|
|
|
B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,B00000000,B00111111,B01110000,
|
|
|
|
B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,
|
|
|
|
B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,
|
|
|
|
B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,
|
|
|
|
B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000
|
2018-10-08 01:27:21 -05:00
|
|
|
};
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#elif HOTENDS > 4
|
|
|
|
|
|
|
|
#define STATUS_HEATERS_WIDTH 108
|
|
|
|
|
|
|
|
const unsigned char status_heaters_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,
|
|
|
|
B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111000,B01110000,
|
|
|
|
B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00111011,B11110000,
|
|
|
|
B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,B00000000,B00111011,B01110000,B00000000,B00111000,B11110000,
|
|
|
|
B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,B00000000,B00011011,B01100000,B00000000,B00011111,B01100000,
|
|
|
|
B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,B00000000,B00011000,B00100000,B00000000,B00011111,B01100000,
|
|
|
|
B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,B00000000,B00111111,B01110000,B00000000,B00111011,B01110000,
|
|
|
|
B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,B00000000,B00111111,B01110000,B00000000,B00111100,B11110000,
|
|
|
|
B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,
|
|
|
|
B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,
|
|
|
|
B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,
|
|
|
|
B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif // HOTENDS
|
|
|
|
|
|
|
|
#endif // !HAS_HEATED_BED || HOTENDS > 3
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
#else // !STATUS_COMBINE_HEATERS
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
//
|
|
|
|
// Status Screen Hotends bitmaps
|
|
|
|
//
|
|
|
|
#if HOTENDS
|
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_HOTEND1_WIDTH 16
|
|
|
|
|
|
|
|
#define MAX_HOTEND_BITMAPS 5
|
|
|
|
#if HOTENDS > MAX_HOTEND_BITMAPS
|
|
|
|
#define STATUS_HOTEND_BITMAPS MAX_HOTEND_BITMAPS
|
|
|
|
#else
|
|
|
|
#define STATUS_HOTEND_BITMAPS HOTENDS
|
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-11-27 21:15:52 -06:00
|
|
|
#if HOTENDS == 1 || ENABLED(STATUS_HOTEND_NUMBERLESS)
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00011111,B11100000,
|
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
2018-10-08 01:27:21 -05:00
|
|
|
};
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#ifdef STATUS_HOTEND_ANIM
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend_b_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00010000,B00100000,
|
|
|
|
B00010000,B00100000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00110000,B00110000,
|
|
|
|
B00001000,B01000000,
|
|
|
|
B00000100,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2018-10-08 01:27:21 -05:00
|
|
|
#else
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#if HOTENDS >= 2
|
|
|
|
|
|
|
|
#ifdef STATUS_HOTEND_ANIM
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend1_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111110,B11110000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00011010,B11100000,
|
|
|
|
B00011110,B11100000,
|
|
|
|
B00111110,B11110000,
|
|
|
|
B00111110,B11110000,
|
|
|
|
B00111110,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend1_b_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00100001,B00010000,
|
|
|
|
B00100011,B00010000,
|
|
|
|
B00010101,B00100000,
|
|
|
|
B00010001,B00100000,
|
|
|
|
B00100001,B00010000,
|
|
|
|
B00100001,B00010000,
|
|
|
|
B00110001,B00110000,
|
|
|
|
B00001000,B01000000,
|
|
|
|
B00000100,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend2_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00011111,B01100000,
|
|
|
|
B00011110,B11100000,
|
|
|
|
B00111101,B11110000,
|
|
|
|
B00111011,B11110000,
|
|
|
|
B00111000,B01110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend2_b_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00100011,B00010000,
|
|
|
|
B00100100,B10010000,
|
|
|
|
B00010000,B10100000,
|
|
|
|
B00010001,B00100000,
|
|
|
|
B00100010,B00010000,
|
|
|
|
B00100100,B00010000,
|
|
|
|
B00110111,B10110000,
|
|
|
|
B00001000,B01000000,
|
|
|
|
B00000100,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend1_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111110,B11110000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00111010,B11110000,
|
|
|
|
B00011110,B11100000,
|
|
|
|
B00011110,B11100000,
|
|
|
|
B00111110,B11110000,
|
|
|
|
B00111110,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend2_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111111,B01110000,
|
|
|
|
B00011110,B11100000,
|
|
|
|
B00011101,B11100000,
|
|
|
|
B00111011,B11110000,
|
|
|
|
B00111000,B01110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
#if STATUS_HOTEND_BITMAPS >= 3
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#ifdef STATUS_HOTEND_ANIM
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend3_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00011111,B01100000,
|
|
|
|
B00011100,B11100000,
|
|
|
|
B00111111,B01110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend3_b_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00100011,B00010000,
|
|
|
|
B00100100,B10010000,
|
|
|
|
B00010000,B10100000,
|
|
|
|
B00010011,B00100000,
|
|
|
|
B00100000,B10010000,
|
|
|
|
B00100100,B10010000,
|
|
|
|
B00110011,B00110000,
|
|
|
|
B00001000,B01000000,
|
|
|
|
B00000100,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend3_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111111,B01110000,
|
|
|
|
B00011100,B11100000,
|
|
|
|
B00011111,B01100000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#if STATUS_HOTEND_BITMAPS >= 4
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#ifdef STATUS_HOTEND_ANIM
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend4_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00011011,B01100000,
|
|
|
|
B00011011,B01100000,
|
|
|
|
B00111000,B00110000,
|
|
|
|
B00111111,B01110000,
|
|
|
|
B00111111,B01110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend4_b_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00100100,B10010000,
|
|
|
|
B00100100,B10010000,
|
|
|
|
B00010100,B10100000,
|
|
|
|
B00010100,B10100000,
|
|
|
|
B00100111,B11010000,
|
|
|
|
B00100000,B10010000,
|
|
|
|
B00110000,B10110000,
|
|
|
|
B00001000,B01000000,
|
|
|
|
B00000100,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2018-11-21 00:50:06 -06:00
|
|
|
const unsigned char status_hotend4_a_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00011111,B11100000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00011011,B01100000,
|
|
|
|
B00011000,B00100000,
|
|
|
|
B00111111,B01110000,
|
|
|
|
B00111111,B01110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#if STATUS_HOTEND_BITMAPS >= 5
|
2018-11-21 00:50:06 -06:00
|
|
|
|
|
|
|
#ifdef STATUS_HOTEND_ANIM
|
|
|
|
|
|
|
|
const unsigned char status_hotend5_a_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00111000,B01110000,
|
|
|
|
B00111011,B11110000,
|
|
|
|
B00011000,B11100000,
|
|
|
|
B00011111,B01100000,
|
|
|
|
B00111111,B01110000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
const unsigned char status_hotend5_b_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,
|
|
|
|
B00100000,B00010000,
|
|
|
|
B00100111,B10010000,
|
|
|
|
B00100100,B00010000,
|
|
|
|
B00010111,B00100000,
|
|
|
|
B00010000,B10100000,
|
|
|
|
B00100000,B10010000,
|
|
|
|
B00100100,B10010000,
|
|
|
|
B00110011,B00110000,
|
|
|
|
B00001000,B01000000,
|
|
|
|
B00000100,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
const unsigned char status_hotend5_a_bmp[] PROGMEM = {
|
|
|
|
B00011111,B11100000,
|
|
|
|
B00111000,B01110000,
|
|
|
|
B00111011,B11110000,
|
|
|
|
B00111000,B11110000,
|
|
|
|
B00011111,B01100000,
|
|
|
|
B00011111,B01100000,
|
|
|
|
B00111011,B01110000,
|
|
|
|
B00111100,B11110000,
|
|
|
|
B00111111,B11110000,
|
|
|
|
B00001111,B11000000,
|
|
|
|
B00000111,B10000000,
|
|
|
|
B00000011,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2018-10-08 01:27:21 -05:00
|
|
|
#endif
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // !STATUS_HEATERS_WIDTH && !STATUS_HOTEND1_WIDTH
|
2018-05-08 09:06:01 -05:00
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
//
|
|
|
|
// Default Status Screen Bed bitmaps
|
|
|
|
//
|
2019-09-07 04:52:57 -05:00
|
|
|
#if !STATUS_BED_WIDTH && HAS_HEATED_BED && DISABLED(STATUS_COMBINE_HEATERS)
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-11-27 21:15:52 -06:00
|
|
|
#if ENABLED(STATUS_ALT_BED_BITMAP)
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#define STATUS_BED_ANIM
|
|
|
|
#define STATUS_BED_WIDTH 24
|
|
|
|
#ifndef STATUS_BED_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_BED_X (LCD_PIXEL_WIDTH - (STATUS_BED_BYTEWIDTH + STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_BED_TEXT_X (STATUS_BED_X + 11)
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
const unsigned char status_bed_bmp[] PROGMEM = {
|
|
|
|
B11111111,B11111111,B11000000,
|
|
|
|
B01000000,B00000000,B00100000,
|
|
|
|
B00100000,B00000000,B00010000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00001000,B00000000,B00000100,
|
|
|
|
B00000100,B00000000,B00000010,
|
|
|
|
B00000011,B11111111,B11111111
|
|
|
|
};
|
|
|
|
|
|
|
|
const unsigned char status_bed_on_bmp[] PROGMEM = {
|
|
|
|
B00000010,B00100010,B00000000,
|
|
|
|
B00000100,B01000100,B00000000,
|
|
|
|
B00000100,B01000100,B00000000,
|
|
|
|
B00000010,B00100010,B00000000,
|
|
|
|
B00000001,B00010001,B00000000,
|
|
|
|
B11111111,B11111111,B11000000,
|
|
|
|
B01000000,B10001000,B10100000,
|
|
|
|
B00100001,B00010001,B00010000,
|
|
|
|
B00010010,B00100010,B00001000,
|
|
|
|
B00001000,B00000000,B00000100,
|
|
|
|
B00000100,B00000000,B00000010,
|
|
|
|
B00000011,B11111111,B11111111
|
|
|
|
};
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2018-12-09 11:59:58 -06:00
|
|
|
#define STATUS_BED_WIDTH 21
|
2018-11-20 07:36:37 -06:00
|
|
|
#ifndef STATUS_BED_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_BED_X (LCD_PIXEL_WIDTH - (STATUS_BED_BYTEWIDTH + STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef STATUS_BED_ANIM
|
|
|
|
|
|
|
|
const unsigned char status_bed_bmp[] PROGMEM = {
|
2018-12-09 11:59:58 -06:00
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00011111,B11111111,B11111000
|
2018-11-20 07:36:37 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
const unsigned char status_bed_on_bmp[] PROGMEM = {
|
2018-12-03 05:55:33 -06:00
|
|
|
B00000100,B00010000,B01000000,
|
|
|
|
B00000010,B00001000,B00100000,
|
|
|
|
B00000010,B00001000,B00100000,
|
|
|
|
B00000100,B00010000,B01000000,
|
|
|
|
B00001000,B00100000,B10000000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00010000,B01000001,B00000000,
|
|
|
|
B00010000,B01000001,B00000000,
|
2018-12-03 05:55:33 -06:00
|
|
|
B00001000,B00100000,B10000000,
|
|
|
|
B00000100,B00010000,B01000000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00000000,B00000000,B00000000,
|
2018-12-03 05:55:33 -06:00
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00011111,B11111111,B11111000
|
2018-11-20 07:36:37 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#else
|
2018-05-08 09:06:01 -05:00
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
const unsigned char status_bed_bmp[] PROGMEM = {
|
2018-12-03 05:55:33 -06:00
|
|
|
B00000100,B00010000,B01000000,
|
|
|
|
B00000010,B00001000,B00100000,
|
|
|
|
B00000010,B00001000,B00100000,
|
|
|
|
B00000100,B00010000,B01000000,
|
|
|
|
B00001000,B00100000,B10000000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00010000,B01000001,B00000000,
|
|
|
|
B00010000,B01000001,B00000000,
|
2018-12-03 05:55:33 -06:00
|
|
|
B00001000,B00100000,B10000000,
|
|
|
|
B00000100,B00010000,B01000000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00000000,B00000000,B00000000,
|
2018-12-03 05:55:33 -06:00
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00011111,B11111111,B11111000
|
2018-11-20 07:36:37 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2019-09-07 04:52:57 -05:00
|
|
|
#else
|
|
|
|
#define STATUS_BED_WIDTH 0
|
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#if !STATUS_CHAMBER_WIDTH && HAS_HEATED_CHAMBER && ((HOTENDS <= 4 && !HAS_HEATED_BED) || (HOTENDS <= 3 && HAS_HEATED_BED))
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_CHAMBER_WIDTH 21
|
2019-05-30 18:31:50 -05:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#if STATUS_HEATERS_WIDTH
|
|
|
|
#if ENABLED(STATUS_COMBINE_HEATERS)
|
|
|
|
#define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - 2 - (STATUS_CHAMBER_BYTEWIDTH) * 8)
|
|
|
|
#elif HAS_FAN0 && HAS_HEATED_BED && HOTENDS <= 2
|
|
|
|
#define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - 2 - (STATUS_HEATERS_BYTEWIDTH - STATUS_CHAMBER_BYTEWIDTH) * 8)
|
|
|
|
#elif HAS_FAN0 && !HAS_HEATED_BED
|
|
|
|
#define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - (STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8)
|
|
|
|
#else
|
|
|
|
#define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - (STATUS_CHAMBER_BYTEWIDTH) * 8)
|
|
|
|
#endif
|
|
|
|
#endif
|
2019-05-30 18:31:50 -05:00
|
|
|
|
|
|
|
#ifdef STATUS_CHAMBER_ANIM
|
|
|
|
|
|
|
|
const unsigned char status_chamber_bmp[] PROGMEM = {
|
2019-09-07 04:52:57 -05:00
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00011111,B11111111,B11111000
|
2019-05-30 18:31:50 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
const unsigned char status_chamber_on_bmp[] PROGMEM = {
|
2019-09-07 04:52:57 -05:00
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B10000100,B00001000,
|
|
|
|
B00010000,B01000010,B00001000,
|
|
|
|
B00010000,B01000010,B00001000,
|
|
|
|
B00010000,B10000100,B00001000,
|
|
|
|
B00010001,B00001000,B00001000,
|
|
|
|
B00010001,B00001000,B00001000,
|
|
|
|
B00010000,B10000100,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00011111,B11111111,B11111000
|
2019-05-30 18:31:50 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
const unsigned char status_chamber_bmp[] PROGMEM = {
|
2019-09-07 04:52:57 -05:00
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00010000,B10000100,B00001000,
|
|
|
|
B00010000,B01000010,B00001000,
|
|
|
|
B00010000,B01000010,B00001000,
|
|
|
|
B00010000,B10000100,B00001000,
|
|
|
|
B00010001,B00001000,B00001000,
|
|
|
|
B00010001,B00001000,B00001000,
|
|
|
|
B00010000,B10000100,B00001000,
|
|
|
|
B00010000,B00000000,B00001000,
|
|
|
|
B00011111,B11111111,B11111000,
|
|
|
|
B00011111,B11111111,B11111000
|
2019-05-30 18:31:50 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2019-09-07 04:52:57 -05:00
|
|
|
#else // HAS_HEATED_CHAMBER
|
|
|
|
#define STATUS_CHAMBER_WIDTH 0
|
|
|
|
#endif
|
2019-05-30 18:31:50 -05:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define BED_CHAM (HAS_HEATED_BED || HAS_HEATED_CHAMBER)
|
|
|
|
#define BED_CHAM_FAN (BED_CHAM || HAS_FAN0)
|
2019-05-30 18:31:50 -05:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
// Can also be overridden in Configuration_adv.h
|
2018-11-20 07:36:37 -06:00
|
|
|
// If you can afford it, try the 3-frame fan animation!
|
|
|
|
// Don't compile in the fan animation with no fan
|
2019-09-07 04:52:57 -05:00
|
|
|
#if !HAS_FAN0 || (HOTENDS == 5 || (HOTENDS == 4 && BED_CHAM) || (ENABLED(STATUS_COMBINE_HEATERS) && HAS_HEATED_CHAMBER))
|
2018-11-23 23:14:56 -06:00
|
|
|
#undef STATUS_FAN_FRAMES
|
2019-09-07 04:52:57 -05:00
|
|
|
#elif !STATUS_FAN_FRAMES
|
2018-11-23 23:14:56 -06:00
|
|
|
#define STATUS_FAN_FRAMES 2
|
2019-01-03 06:03:06 -06:00
|
|
|
#elif STATUS_FAN_FRAMES > 4
|
|
|
|
#error "A maximum of 4 fan animation frames is currently supported."
|
2018-01-31 18:43:33 -06:00
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#if HOTENDS > 4
|
|
|
|
#undef STATUS_LOGO_WIDTH
|
|
|
|
#undef STATUS_HEATERS_XSPACE
|
|
|
|
#define STATUS_HEATERS_XSPACE 24
|
|
|
|
#endif
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
//
|
|
|
|
// Provide default Fan Bitmaps
|
|
|
|
//
|
2019-09-07 04:52:57 -05:00
|
|
|
#if !STATUS_FAN_WIDTH && STATUS_FAN_FRAMES > 0
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
// Provide a fan animation if none exists
|
|
|
|
|
2018-11-23 23:14:56 -06:00
|
|
|
#if STATUS_FAN_FRAMES <= 2
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#define STATUS_FAN_Y 2
|
|
|
|
#define STATUS_FAN_WIDTH 20
|
|
|
|
|
2018-12-03 05:55:33 -06:00
|
|
|
#if ENABLED(STATUS_ALT_FAN_BITMAP)
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-12-03 05:55:33 -06:00
|
|
|
const unsigned char status_fan0_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111110,B00000000,
|
|
|
|
B00000110,B00000001,B10000000,
|
|
|
|
B00001000,B11111100,B01000000,
|
|
|
|
B00010000,B11111100,B00100000,
|
|
|
|
B00010000,B01111000,B00100000,
|
|
|
|
B00100000,B00110000,B00010000,
|
|
|
|
B00101100,B00000000,B11010000,
|
|
|
|
B00101110,B00110001,B11010000,
|
|
|
|
B00101111,B01111011,B11010000,
|
|
|
|
B00101111,B01111011,B11010000,
|
|
|
|
B00101110,B00110001,B11010000,
|
|
|
|
B00101100,B00000000,B11010000,
|
|
|
|
B00100000,B00110000,B00010000,
|
|
|
|
B00010000,B01111000,B00100000,
|
|
|
|
B00010000,B11111100,B00100000,
|
|
|
|
B00001000,B11111100,B01000000,
|
|
|
|
B00000110,B00000001,B10000000,
|
|
|
|
B00000001,B11111110,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#if STATUS_FAN_FRAMES == 2
|
|
|
|
const unsigned char status_fan1_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111110,B00000000,
|
|
|
|
B00000110,B00000001,B10000000,
|
|
|
|
B00001001,B10000110,B01000000,
|
|
|
|
B00010011,B10000111,B00100000,
|
|
|
|
B00010111,B10000111,B10100000,
|
|
|
|
B00101111,B10000111,B11010000,
|
|
|
|
B00101111,B00000011,B11010000,
|
|
|
|
B00100000,B00110000,B00010000,
|
|
|
|
B00100000,B01111000,B00010000,
|
|
|
|
B00100000,B01111000,B00010000,
|
|
|
|
B00100000,B00110000,B00010000,
|
|
|
|
B00101111,B00000011,B11010000,
|
|
|
|
B00101111,B10000111,B11010000,
|
|
|
|
B00010111,B10000111,B10100000,
|
|
|
|
B00010011,B10000111,B00100000,
|
|
|
|
B00001001,B10000110,B01000000,
|
|
|
|
B00000110,B00000001,B10000000,
|
|
|
|
B00000001,B11111110,B00000000
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else // !STATUS_ALT_FAN_BITMAP
|
|
|
|
|
|
|
|
const unsigned char status_fan0_bmp[] PROGMEM = {
|
2018-11-20 07:36:37 -06:00
|
|
|
B00111111,B11111111,B11110000,
|
|
|
|
B00111000,B00000000,B01110000,
|
2018-12-03 05:55:33 -06:00
|
|
|
B00110000,B11111100,B00110000,
|
|
|
|
B00100000,B11111100,B00010000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00100000,B01111000,B00010000,
|
|
|
|
B00100000,B00110000,B00010000,
|
2018-12-03 05:55:33 -06:00
|
|
|
B00101100,B00000000,B11010000,
|
|
|
|
B00101110,B00110001,B11010000,
|
|
|
|
B00101111,B01111011,B11010000,
|
|
|
|
B00101111,B01111011,B11010000,
|
|
|
|
B00101110,B00110001,B11010000,
|
|
|
|
B00101100,B00000000,B11010000,
|
|
|
|
B00100000,B00110000,B00010000,
|
|
|
|
B00100000,B01111000,B00010000,
|
|
|
|
B00100000,B11111100,B00010000,
|
|
|
|
B00110000,B11111100,B00110000,
|
2018-11-20 07:36:37 -06:00
|
|
|
B00111000,B00000000,B01110000,
|
|
|
|
B00111111,B11111111,B11110000
|
|
|
|
};
|
2018-12-03 05:55:33 -06:00
|
|
|
|
|
|
|
#if STATUS_FAN_FRAMES == 2
|
|
|
|
const unsigned char status_fan1_bmp[] PROGMEM = {
|
|
|
|
B00111111,B11111111,B11110000,
|
|
|
|
B00111000,B00000000,B01110000,
|
|
|
|
B00110001,B10000110,B00110000,
|
|
|
|
B00100011,B10000111,B00010000,
|
|
|
|
B00100111,B10000111,B10010000,
|
|
|
|
B00101111,B10000111,B11010000,
|
|
|
|
B00101111,B00000011,B11010000,
|
|
|
|
B00100000,B00110000,B00010000,
|
|
|
|
B00100000,B01111000,B00010000,
|
|
|
|
B00100000,B01111000,B00010000,
|
|
|
|
B00100000,B00110000,B00010000,
|
|
|
|
B00101111,B00000011,B11010000,
|
|
|
|
B00101111,B10000111,B11010000,
|
|
|
|
B00100111,B10000111,B10010000,
|
|
|
|
B00100011,B10000111,B00010000,
|
|
|
|
B00110001,B10000110,B00110000,
|
|
|
|
B00111000,B00000000,B01110000,
|
|
|
|
B00111111,B11111111,B11110000
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // !STATUS_ALT_FAN_BITMAP
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-11-23 23:14:56 -06:00
|
|
|
#elif STATUS_FAN_FRAMES == 3
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_FAN_WIDTH 20
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-12-03 05:55:33 -06:00
|
|
|
#if ENABLED(STATUS_ALT_FAN_BITMAP)
|
|
|
|
|
|
|
|
const unsigned char status_fan0_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111111,B00000000,
|
|
|
|
B00000110,B00000000,B11000000,
|
|
|
|
B00001001,B00000001,B00100000,
|
|
|
|
B00010111,B10000011,B11010000,
|
|
|
|
B00010111,B10000011,B11010000,
|
|
|
|
B00101111,B11000111,B11101000,
|
|
|
|
B00100111,B11000111,B11001000,
|
|
|
|
B00100001,B11111111,B00001000,
|
|
|
|
B00100000,B01111100,B00001000,
|
|
|
|
B00100000,B01111100,B00001000,
|
|
|
|
B00100000,B01111100,B00001000,
|
|
|
|
B00100001,B11111111,B00001000,
|
|
|
|
B00100111,B11000111,B11001000,
|
|
|
|
B00101111,B11000111,B11101000,
|
|
|
|
B00010111,B10000011,B11010000,
|
|
|
|
B00010111,B10000011,B11010000,
|
|
|
|
B00001001,B00000001,B00100000,
|
|
|
|
B00000110,B00000000,B11000000,
|
|
|
|
B00000001,B11111111,B00000000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan1_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111111,B00000000,
|
|
|
|
B00000110,B00110000,B11000000,
|
|
|
|
B00001001,B11110000,B00100000,
|
|
|
|
B00010001,B11110000,B00010000,
|
|
|
|
B00010000,B11110000,B00010000,
|
|
|
|
B00100000,B11110000,B01101000,
|
|
|
|
B00100000,B00110001,B11101000,
|
|
|
|
B00100000,B00111001,B11101000,
|
|
|
|
B00100000,B01111111,B11111000,
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111111,B11111100,B00001000,
|
|
|
|
B00101111,B00111000,B00001000,
|
|
|
|
B00101110,B00011000,B00001000,
|
|
|
|
B00101100,B00011110,B00001000,
|
|
|
|
B00010000,B00011110,B00010000,
|
|
|
|
B00010000,B00011111,B00010000,
|
|
|
|
B00001000,B00011111,B00100000,
|
|
|
|
B00000110,B00011000,B11000000,
|
|
|
|
B00000001,B11111111,B00000000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan2_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111111,B00000000,
|
|
|
|
B00000110,B00011000,B11000000,
|
|
|
|
B00001000,B00011111,B00100000,
|
|
|
|
B00010000,B00011111,B10010000,
|
|
|
|
B00010100,B00011111,B00010000,
|
|
|
|
B00101110,B00011110,B00001000,
|
|
|
|
B00101111,B00011100,B00001000,
|
|
|
|
B00101111,B10111000,B00001000,
|
|
|
|
B00111111,B11111100,B00001000,
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00100000,B01111111,B11111000,
|
|
|
|
B00100000,B00111011,B11101000,
|
|
|
|
B00100000,B01110001,B11101000,
|
|
|
|
B00100000,B11110000,B11101000,
|
|
|
|
B00010001,B11110000,B01010000,
|
|
|
|
B00010011,B11110000,B00010000,
|
|
|
|
B00001001,B11110000,B00100000,
|
|
|
|
B00000110,B00110000,B11000000,
|
|
|
|
B00000001,B11111111,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#else // !STATUS_ALT_FAN_BITMAP
|
|
|
|
|
|
|
|
const unsigned char status_fan0_bmp[] PROGMEM = {
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111110,B00000000,B11111000,
|
|
|
|
B00111001,B00000001,B00111000,
|
|
|
|
B00110111,B10000011,B11011000,
|
|
|
|
B00110111,B10000011,B11011000,
|
|
|
|
B00101111,B11000111,B11101000,
|
|
|
|
B00100111,B11000111,B11001000,
|
|
|
|
B00100001,B11111111,B00001000,
|
|
|
|
B00100000,B01111100,B00001000,
|
|
|
|
B00100000,B01111100,B00001000,
|
|
|
|
B00100000,B01111100,B00001000,
|
|
|
|
B00100001,B11111111,B00001000,
|
|
|
|
B00100111,B11000111,B11001000,
|
|
|
|
B00101111,B11000111,B11101000,
|
|
|
|
B00110111,B10000011,B11011000,
|
|
|
|
B00110111,B10000011,B11011000,
|
|
|
|
B00111001,B00000001,B00111000,
|
|
|
|
B00111110,B00000000,B11111000,
|
|
|
|
B00111111,B11111111,B11111000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan1_bmp[] PROGMEM = {
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111110,B00110000,B11111000,
|
|
|
|
B00111001,B11110000,B00111000,
|
|
|
|
B00110001,B11110000,B00011000,
|
|
|
|
B00110000,B11110000,B00011000,
|
|
|
|
B00100000,B11110000,B01101000,
|
|
|
|
B00100000,B00110001,B11101000,
|
|
|
|
B00100000,B00111001,B11101000,
|
|
|
|
B00100000,B01111111,B11111000,
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111111,B11111100,B00001000,
|
|
|
|
B00101111,B00111000,B00001000,
|
|
|
|
B00101110,B00011000,B00001000,
|
|
|
|
B00101100,B00011110,B00001000,
|
|
|
|
B00110000,B00011110,B00011000,
|
|
|
|
B00110000,B00011111,B00011000,
|
|
|
|
B00111000,B00011111,B00111000,
|
|
|
|
B00111110,B00011000,B11111000,
|
|
|
|
B00111111,B11111111,B11111000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan2_bmp[] PROGMEM = {
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111110,B00011000,B11111000,
|
|
|
|
B00111000,B00011111,B00111000,
|
|
|
|
B00110000,B00011111,B10011000,
|
|
|
|
B00110100,B00011111,B00011000,
|
|
|
|
B00101110,B00011110,B00001000,
|
|
|
|
B00101111,B00011100,B00001000,
|
|
|
|
B00101111,B10111000,B00001000,
|
|
|
|
B00111111,B11111100,B00001000,
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00100000,B01111111,B11111000,
|
|
|
|
B00100000,B00111011,B11101000,
|
|
|
|
B00100000,B01110001,B11101000,
|
|
|
|
B00100000,B11110000,B11101000,
|
|
|
|
B00110001,B11110000,B01011000,
|
|
|
|
B00110011,B11110000,B00011000,
|
|
|
|
B00111001,B11110000,B00111000,
|
|
|
|
B00111110,B00110000,B11111000,
|
|
|
|
B00111111,B11111111,B11111000
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !STATUS_ALT_FAN_BITMAP
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-11-23 23:14:56 -06:00
|
|
|
#elif STATUS_FAN_FRAMES == 4
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_FAN_WIDTH 20
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-12-03 05:55:33 -06:00
|
|
|
#if ENABLED(STATUS_ALT_FAN_BITMAP)
|
|
|
|
|
|
|
|
const unsigned char status_fan0_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111111,B00000000,
|
|
|
|
B00000110,B00000000,B11000000,
|
|
|
|
B00001000,B00111111,B00100000,
|
|
|
|
B00010000,B01111110,B00010000,
|
|
|
|
B00010000,B01111100,B00010000,
|
|
|
|
B00101000,B01111100,B00001000,
|
|
|
|
B00101100,B00111000,B00001000,
|
|
|
|
B00101111,B00111001,B11001000,
|
|
|
|
B00101111,B11111111,B11101000,
|
|
|
|
B00101111,B11000111,B11101000,
|
|
|
|
B00101111,B11111111,B11101000,
|
|
|
|
B00100111,B00111001,B11101000,
|
|
|
|
B00100000,B00111000,B01101000,
|
|
|
|
B00100000,B01111100,B00101000,
|
|
|
|
B00010000,B01111100,B00010000,
|
|
|
|
B00010000,B11111100,B00010000,
|
|
|
|
B00001001,B11111000,B00100000,
|
|
|
|
B00000110,B00000000,B11000000,
|
|
|
|
B00000001,B11111111,B00000000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan1_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111111,B00000000,
|
|
|
|
B00000110,B00000000,B11000000,
|
|
|
|
B00001000,B00001111,B00100000,
|
|
|
|
B00010100,B00011111,B11010000,
|
|
|
|
B00010110,B00011111,B10010000,
|
|
|
|
B00101111,B00011111,B00001000,
|
|
|
|
B00101111,B10011110,B00001000,
|
|
|
|
B00101111,B11111100,B00001000,
|
|
|
|
B00101111,B11011100,B00001000,
|
|
|
|
B00100111,B11101111,B11001000,
|
|
|
|
B00100000,B01110111,B11101000,
|
|
|
|
B00100000,B01111111,B11101000,
|
|
|
|
B00100000,B11110011,B11101000,
|
|
|
|
B00100001,B11110001,B11101000,
|
|
|
|
B00010011,B11110000,B11010000,
|
|
|
|
B00010111,B11110000,B01010000,
|
|
|
|
B00001001,B11100000,B00100000,
|
|
|
|
B00000110,B00000000,B11000000,
|
|
|
|
B00000001,B11111111,B00000000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan2_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111111,B00000000,
|
|
|
|
B00000110,B10000000,B11000000,
|
|
|
|
B00001001,B10000000,B00100000,
|
|
|
|
B00010111,B10000001,B11010000,
|
|
|
|
B00010111,B11000011,B11010000,
|
|
|
|
B00100111,B11000111,B11101000,
|
|
|
|
B00100011,B11000111,B11111000,
|
|
|
|
B00100001,B11111111,B10001000,
|
|
|
|
B00100000,B01101100,B00001000,
|
|
|
|
B00100000,B01101100,B00001000,
|
|
|
|
B00100000,B01101100,B00001000,
|
|
|
|
B00100011,B11111111,B00001000,
|
|
|
|
B00111111,B11000111,B10001000,
|
|
|
|
B00101111,B11000111,B11001000,
|
|
|
|
B00010111,B10000111,B11010000,
|
|
|
|
B00010111,B00000011,B11010000,
|
|
|
|
B00001000,B00000011,B00100000,
|
|
|
|
B00000110,B00000010,B11000000,
|
|
|
|
B00000001,B11111111,B00000000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan3_bmp[] PROGMEM = {
|
|
|
|
B00000001,B11111111,B00000000,
|
|
|
|
B00000110,B00000000,B11000000,
|
|
|
|
B00001001,B11110000,B00100000,
|
|
|
|
B00010001,B11100000,B00010000,
|
|
|
|
B00010001,B11100000,B00010000,
|
|
|
|
B00100001,B11100001,B11101000,
|
|
|
|
B00100000,B11110011,B11101000,
|
|
|
|
B00100000,B01111111,B11101000,
|
|
|
|
B00100000,B01110111,B11101000,
|
|
|
|
B00101000,B11101110,B00101000,
|
|
|
|
B00101111,B11011100,B00001000,
|
|
|
|
B00101111,B11111100,B00001000,
|
|
|
|
B00101111,B10011110,B00001000,
|
|
|
|
B00101111,B00001111,B00001000,
|
|
|
|
B00010000,B00001111,B00010000,
|
|
|
|
B00010000,B00001111,B00010000,
|
|
|
|
B00001000,B00011111,B00100000,
|
|
|
|
B00000110,B00000000,B11000000,
|
|
|
|
B00000001,B11111111,B00000000
|
|
|
|
};
|
|
|
|
|
|
|
|
#else // !STATUS_ALT_FAN_BITMAP
|
|
|
|
|
|
|
|
const unsigned char status_fan0_bmp[] PROGMEM = {
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111110,B00000000,B11111000,
|
|
|
|
B00111000,B00111111,B00111000,
|
|
|
|
B00110000,B01111110,B00011000,
|
|
|
|
B00110000,B01111100,B00011000,
|
|
|
|
B00101000,B01111100,B00001000,
|
|
|
|
B00101100,B00111000,B00001000,
|
|
|
|
B00101111,B00111001,B11001000,
|
|
|
|
B00101111,B11111111,B11101000,
|
|
|
|
B00101111,B11000111,B11101000,
|
|
|
|
B00101111,B11111111,B11101000,
|
|
|
|
B00100111,B00111001,B11101000,
|
|
|
|
B00100000,B00111000,B01101000,
|
|
|
|
B00100000,B01111100,B00101000,
|
|
|
|
B00110000,B01111100,B00011000,
|
|
|
|
B00110000,B11111100,B00011000,
|
|
|
|
B00111001,B11111000,B00111000,
|
|
|
|
B00111110,B00000000,B11111000,
|
|
|
|
B00111111,B11111111,B11111000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan1_bmp[] PROGMEM = {
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111110,B00000000,B11111000,
|
|
|
|
B00111000,B00001111,B00111000,
|
|
|
|
B00110100,B00011111,B11011000,
|
|
|
|
B00110110,B00011111,B10011000,
|
|
|
|
B00101111,B00011111,B00001000,
|
|
|
|
B00101111,B10011110,B00001000,
|
|
|
|
B00101111,B11111100,B00001000,
|
|
|
|
B00101111,B11011100,B00001000,
|
|
|
|
B00100111,B11101111,B11001000,
|
|
|
|
B00100000,B01110111,B11101000,
|
|
|
|
B00100000,B01111111,B11101000,
|
|
|
|
B00100000,B11110011,B11101000,
|
|
|
|
B00100001,B11110001,B11101000,
|
|
|
|
B00110011,B11110000,B11011000,
|
|
|
|
B00110111,B11110000,B01011000,
|
|
|
|
B00111001,B11100000,B00111000,
|
|
|
|
B00111110,B00000000,B11111000,
|
|
|
|
B00111111,B11111111,B11111000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan2_bmp[] PROGMEM = {
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111110,B10000000,B11111000,
|
|
|
|
B00111001,B10000000,B00111000,
|
|
|
|
B00110111,B10000001,B11011000,
|
|
|
|
B00110111,B11000011,B11011000,
|
|
|
|
B00100111,B11000111,B11101000,
|
|
|
|
B00100011,B11000111,B11111000,
|
|
|
|
B00100001,B11111111,B10001000,
|
|
|
|
B00100000,B01101100,B00001000,
|
|
|
|
B00100000,B01101100,B00001000,
|
|
|
|
B00100000,B01101100,B00001000,
|
|
|
|
B00100011,B11111111,B00001000,
|
|
|
|
B00111111,B11000111,B10001000,
|
|
|
|
B00101111,B11000111,B11001000,
|
|
|
|
B00110111,B10000111,B11011000,
|
|
|
|
B00110111,B00000011,B11011000,
|
|
|
|
B00111000,B00000011,B00111000,
|
|
|
|
B00111110,B00000010,B11111000,
|
|
|
|
B00111111,B11111111,B11111000
|
|
|
|
};
|
|
|
|
const unsigned char status_fan3_bmp[] PROGMEM = {
|
|
|
|
B00111111,B11111111,B11111000,
|
|
|
|
B00111110,B00000000,B11111000,
|
|
|
|
B00111001,B11110000,B00111000,
|
|
|
|
B00110001,B11100000,B00011000,
|
|
|
|
B00110001,B11100000,B00011000,
|
|
|
|
B00100001,B11100001,B11101000,
|
|
|
|
B00100000,B11110011,B11101000,
|
|
|
|
B00100000,B01111111,B11101000,
|
|
|
|
B00100000,B01110111,B11101000,
|
|
|
|
B00101000,B11101110,B00101000,
|
|
|
|
B00101111,B11011100,B00001000,
|
|
|
|
B00101111,B11111100,B00001000,
|
|
|
|
B00101111,B10011110,B00001000,
|
|
|
|
B00101111,B00001111,B00001000,
|
|
|
|
B00110000,B00001111,B00011000,
|
|
|
|
B00110000,B00001111,B00011000,
|
|
|
|
B00111000,B00011111,B00111000,
|
|
|
|
B00111110,B00000000,B11111000,
|
|
|
|
B00111111,B11111111,B11111000
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !STATUS_ALT_FAN_BITMAP
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#endif
|
2019-09-07 04:52:57 -05:00
|
|
|
#else
|
|
|
|
#undef STATUS_FAN_FRAMES
|
|
|
|
#define STATUS_FAN_WIDTH 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(CUSTOM_STATUS_SCREEN_IMAGE)
|
|
|
|
|
|
|
|
#if STATUS_HOTEND1_WIDTH
|
|
|
|
#define HAS_SPACES ((LCD_PIXEL_WIDTH - (HOTENDS * STATUS_HOTEND1_WIDTH) - STATUS_BED_WIDTH - STATUS_CHAMBER_WIDTH - STATUS_FAN_WIDTH - 24) < STATUS_LOGO_WIDTH ? true : false)
|
|
|
|
#elif STATUS_HEATERS_WIDTH
|
|
|
|
#define HAS_SPACES (((LCD_PIXEL_WIDTH - STATUS_HEATERS_WIDTH - STATUS_BED_WIDTH - STATUS_CHAMBER_WIDTH - STATUS_FAN_WIDTH - 20) < STATUS_LOGO_WIDTH) ? true : false)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAS_SPACES
|
|
|
|
#undef STATUS_LOGO_WIDTH
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (HOTENDS > 1 && STATUS_LOGO_WIDTH && BED_CHAM_FAN) || ( HOTENDS >= 3 && !BED_CHAM_FAN)
|
|
|
|
#define _STATUS_HEATERS_X(H,S,N) (((LCD_PIXEL_WIDTH - (H * (S + N)) - STATUS_LOGO_WIDTH - STATUS_BED_WIDTH - STATUS_CHAMBER_WIDTH - STATUS_FAN_WIDTH) / 2) + STATUS_LOGO_WIDTH)
|
|
|
|
#if STATUS_HOTEND1_WIDTH
|
|
|
|
#if HOTENDS > 2
|
|
|
|
#define STATUS_HEATERS_X _STATUS_HEATERS_X(HOTENDS, STATUS_HOTEND1_WIDTH, 6)
|
|
|
|
#else
|
|
|
|
#define STATUS_HEATERS_X _STATUS_HEATERS_X(HOTENDS, STATUS_HOTEND1_WIDTH, 4)
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define STATUS_HEATERS_X _STATUS_HEATERS_X(1, STATUS_HEATERS_WIDTH, 4)
|
|
|
|
#endif
|
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2018-01-31 18:43:33 -06:00
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
//
|
|
|
|
// Custom Logo Bitmap Properties
|
|
|
|
//
|
|
|
|
#ifndef STATUS_LOGO_WIDTH
|
|
|
|
#define STATUS_LOGO_WIDTH 0
|
2018-01-31 18:43:33 -06:00
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
#ifndef STATUS_LOGO_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_LOGO_BYTEWIDTH BW(STATUS_LOGO_WIDTH)
|
2018-01-15 03:14:23 -06:00
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
#if STATUS_LOGO_WIDTH
|
|
|
|
#ifndef STATUS_LOGO_X
|
|
|
|
#define STATUS_LOGO_X 0
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_LOGO_Y
|
2019-07-05 18:01:21 -05:00
|
|
|
#define STATUS_LOGO_Y _MIN(0, 10 - (STATUS_LOGO_HEIGHT) / 2)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_LOGO_HEIGHT
|
|
|
|
#define STATUS_LOGO_HEIGHT (sizeof(status_logo_bmp) / (STATUS_LOGO_BYTEWIDTH))
|
|
|
|
#endif
|
|
|
|
static_assert(
|
|
|
|
sizeof(status_logo_bmp) == (STATUS_LOGO_BYTEWIDTH) * (STATUS_LOGO_HEIGHT),
|
|
|
|
"Status logo bitmap (status_logo_bmp) dimensions don't match data."
|
|
|
|
);
|
2018-01-15 03:14:23 -06:00
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heater Bitmap Properties
|
|
|
|
//
|
|
|
|
#if STATUS_HOTEND1_WIDTH || STATUS_HEATERS_WIDTH
|
|
|
|
|
|
|
|
#ifndef STATUS_HEATERS_XSPACE
|
2019-09-07 04:52:57 -05:00
|
|
|
#if (HOTENDS == 3 || HOTENDS == 4) && ENABLED(STATUS_COMBINE_HEATERS)
|
|
|
|
#define STATUS_HEATERS_XSPACE 24
|
|
|
|
#else
|
|
|
|
#define STATUS_HEATERS_XSPACE 26 // Like the included bitmaps
|
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_HEATERS_X
|
|
|
|
#if STATUS_LOGO_BYTEWIDTH
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_HEATERS_X (STATUS_LOGO_BYTEWIDTH * 8)
|
|
|
|
#elif ((STATUS_CHAMBER_WIDTH || STATUS_FAN_WIDTH) && (STATUS_BED_WIDTH && STATUS_HOTEND_BITMAPS == 3)) || \
|
|
|
|
((STATUS_CHAMBER_WIDTH || STATUS_FAN_WIDTH || STATUS_BED_WIDTH) && STATUS_HOTEND_BITMAPS == 4)
|
|
|
|
#define STATUS_HEATERS_X 5
|
2018-11-20 07:36:37 -06:00
|
|
|
#else
|
2019-09-07 04:52:57 -05:00
|
|
|
#if ENABLED(STATUS_COMBINE_HEATERS) && HAS_HEATED_BED && HOTENDS <= 4
|
|
|
|
#define STATUS_HEATERS_X 5
|
|
|
|
#else
|
|
|
|
#define STATUS_HEATERS_X 8 // Like the included bitmaps
|
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2018-01-15 03:14:23 -06:00
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#if STATUS_HOTEND1_WIDTH
|
|
|
|
|
|
|
|
//
|
|
|
|
// Hotend images. A base hotend image and optional "ON" state image.
|
|
|
|
//
|
|
|
|
#ifndef STATUS_HOTEND_BITMAPS
|
|
|
|
#define STATUS_HOTEND_BITMAPS 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_HOTEND2_WIDTH
|
|
|
|
#define STATUS_HOTEND2_WIDTH STATUS_HOTEND1_WIDTH
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND3_WIDTH
|
|
|
|
#define STATUS_HOTEND3_WIDTH STATUS_HOTEND2_WIDTH
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND4_WIDTH
|
|
|
|
#define STATUS_HOTEND4_WIDTH STATUS_HOTEND3_WIDTH
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND5_WIDTH
|
2019-08-17 18:40:01 -05:00
|
|
|
#define STATUS_HOTEND5_WIDTH STATUS_HOTEND4_WIDTH
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND6_WIDTH
|
2019-08-17 18:40:01 -05:00
|
|
|
#define STATUS_HOTEND6_WIDTH STATUS_HOTEND5_WIDTH
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
constexpr uint8_t status_hotend_width[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_WIDTH, STATUS_HOTEND2_WIDTH, STATUS_HOTEND3_WIDTH, STATUS_HOTEND4_WIDTH, STATUS_HOTEND5_WIDTH, STATUS_HOTEND6_WIDTH);
|
|
|
|
#define STATUS_HOTEND_WIDTH(N) status_hotend_width[N]
|
|
|
|
|
|
|
|
#ifndef STATUS_HOTEND1_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_HOTEND1_BYTEWIDTH BW(STATUS_HOTEND1_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND2_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_HOTEND2_BYTEWIDTH BW(STATUS_HOTEND2_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND3_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_HOTEND3_BYTEWIDTH BW(STATUS_HOTEND3_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND4_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_HOTEND4_BYTEWIDTH BW(STATUS_HOTEND4_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND5_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_HOTEND5_BYTEWIDTH BW(STATUS_HOTEND5_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND6_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_HOTEND6_BYTEWIDTH BW(STATUS_HOTEND6_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
constexpr uint8_t status_hotend_bytewidth[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_BYTEWIDTH, STATUS_HOTEND2_BYTEWIDTH, STATUS_HOTEND3_BYTEWIDTH, STATUS_HOTEND4_BYTEWIDTH, STATUS_HOTEND5_BYTEWIDTH, STATUS_HOTEND6_BYTEWIDTH);
|
|
|
|
#define STATUS_HOTEND_BYTEWIDTH(N) status_hotend_bytewidth[N]
|
|
|
|
|
|
|
|
#ifndef STATUS_HOTEND1_X
|
|
|
|
#define STATUS_HOTEND1_X STATUS_HEATERS_X
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND2_X
|
|
|
|
#define STATUS_HOTEND2_X STATUS_HOTEND1_X + STATUS_HEATERS_XSPACE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HOTENDS > 2
|
2019-09-07 04:52:57 -05:00
|
|
|
#ifndef STATUS_HOTEND3_X
|
|
|
|
#define STATUS_HOTEND3_X STATUS_HOTEND2_X + STATUS_HEATERS_XSPACE
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND4_X
|
|
|
|
#define STATUS_HOTEND4_X STATUS_HOTEND3_X + STATUS_HEATERS_XSPACE
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND5_X
|
|
|
|
#define STATUS_HOTEND5_X STATUS_HOTEND4_X + STATUS_HEATERS_XSPACE
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND6_X
|
|
|
|
#define STATUS_HOTEND6_X STATUS_HOTEND5_X + STATUS_HEATERS_XSPACE
|
|
|
|
#endif
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
constexpr uint8_t status_hotend_x[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_X, STATUS_HOTEND2_X, STATUS_HOTEND3_X, STATUS_HOTEND4_X, STATUS_HOTEND5_X, STATUS_HOTEND6_X);
|
|
|
|
#define STATUS_HOTEND_X(N) status_hotend_x[N]
|
|
|
|
#elif HOTENDS > 1
|
|
|
|
#define STATUS_HOTEND_X(N) ((N) ? STATUS_HOTEND2_X : STATUS_HOTEND1_X)
|
|
|
|
#else
|
|
|
|
#define STATUS_HOTEND_X(N) STATUS_HOTEND1_X
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_HOTEND_TEXT_X
|
|
|
|
#ifdef STATUS_HOTEND1_TEXT_X
|
|
|
|
#ifndef STATUS_HOTEND2_TEXT_X
|
|
|
|
#define STATUS_HOTEND2_TEXT_X STATUS_HOTEND1_TEXT_X + STATUS_HEATERS_XSPACE
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND3_TEXT_X
|
|
|
|
#define STATUS_HOTEND3_TEXT_X STATUS_HOTEND2_TEXT_X + STATUS_HEATERS_XSPACE
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND4_TEXT_X
|
|
|
|
#define STATUS_HOTEND4_TEXT_X STATUS_HOTEND3_TEXT_X + STATUS_HEATERS_XSPACE
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND5_TEXT_X
|
2019-08-17 18:40:01 -05:00
|
|
|
#define STATUS_HOTEND5_TEXT_X STATUS_HOTEND4_TEXT_X + STATUS_HEATERS_XSPACE
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND6_TEXT_X
|
2019-08-17 18:40:01 -05:00
|
|
|
#define STATUS_HOTEND6_TEXT_X STATUS_HOTEND5_TEXT_X + STATUS_HEATERS_XSPACE
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
constexpr uint8_t status_hotend_text_x[] = ARRAY_N(HOTENDS, STATUS_HOTEND1_TEXT_X, STATUS_HOTEND2_TEXT_X, STATUS_HOTEND3_TEXT_X, STATUS_HOTEND4_TEXT_X, STATUS_HOTEND5_TEXT_X, STATUS_HOTEND6_TEXT_X);
|
|
|
|
#define STATUS_HOTEND_TEXT_X(N) status_hotend_text_x[N]
|
|
|
|
#else
|
|
|
|
#define STATUS_HOTEND_TEXT_X(N) (STATUS_HOTEND1_X + 6 + (N) * (STATUS_HEATERS_XSPACE))
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2019-09-07 04:52:57 -05:00
|
|
|
#if STATUS_HOTEND_BITMAPS > 1 && DISABLED(STATUS_HOTEND_NUMBERLESS)
|
2018-11-21 00:50:06 -06:00
|
|
|
#define TEST_BITMAP_OFF status_hotend1_a_bmp
|
|
|
|
#define TEST_BITMAP_ON status_hotend1_b_bmp
|
2018-11-20 07:36:37 -06:00
|
|
|
#else
|
2018-11-21 00:50:06 -06:00
|
|
|
#define TEST_BITMAP_OFF status_hotend_a_bmp
|
|
|
|
#define TEST_BITMAP_ON status_hotend_b_bmp
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HEATERS_HEIGHT
|
|
|
|
#define STATUS_HEATERS_HEIGHT (sizeof(TEST_BITMAP_OFF) / (STATUS_HOTEND1_BYTEWIDTH))
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HEATERS_Y
|
|
|
|
#define STATUS_HEATERS_Y (20 - (STATUS_HEATERS_HEIGHT))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define HOTEND0_BITMAP_SIZE (STATUS_HOTEND1_BYTEWIDTH) * (STATUS_HEATERS_HEIGHT)
|
|
|
|
static_assert(
|
|
|
|
sizeof(TEST_BITMAP_OFF) == HOTEND0_BITMAP_SIZE,
|
|
|
|
"Status hotend bitmap (" STRINGIFY(TEST_BITMAP_OFF) ") dimensions don't match data."
|
|
|
|
);
|
|
|
|
#ifdef STATUS_HOTEND_ANIM
|
|
|
|
static_assert(
|
|
|
|
sizeof(TEST_BITMAP_ON) == HOTEND0_BITMAP_SIZE,
|
|
|
|
"Status hotend bitmaps (" STRINGIFY(TEST_BITMAP_OFF) " and " STRINGIFY(TEST_BITMAP_ON) ") dimensions don't match."
|
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#elif STATUS_HEATERS_WIDTH
|
|
|
|
|
2018-11-27 21:15:52 -06:00
|
|
|
#ifndef STATUS_HEATERS_XSPACE
|
|
|
|
#define STATUS_HEATERS_XSPACE 24
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND_WIDTH
|
|
|
|
#define STATUS_HOTEND_WIDTH(N) 10
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HOTEND_X
|
|
|
|
#define STATUS_HOTEND_X(N) (STATUS_HEATERS_X + 2 + (N) * (STATUS_HEATERS_XSPACE))
|
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
#ifndef STATUS_HOTEND_TEXT_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#if HOTENDS == 4 && STATUS_LOGO_WIDTH
|
|
|
|
#define STATUS_HOTEND_TEXT_X(N) (STATUS_HEATERS_X + 6 + (N) * (STATUS_HEATERS_XSPACE))
|
|
|
|
#else
|
|
|
|
#define STATUS_HOTEND_TEXT_X(N) (STATUS_HEATERS_X + 6 + (N) * (STATUS_HEATERS_XSPACE))
|
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HEATERS_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_HEATERS_BYTEWIDTH BW(STATUS_HEATERS_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HEATERS_HEIGHT
|
|
|
|
#define STATUS_HEATERS_HEIGHT (sizeof(status_heaters_bmp) / (STATUS_HEATERS_BYTEWIDTH))
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_HEATERS_Y
|
|
|
|
#define STATUS_HEATERS_Y (20 - (STATUS_HEATERS_HEIGHT))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static_assert(
|
|
|
|
sizeof(status_heaters_bmp) == (STATUS_HEATERS_BYTEWIDTH) * (STATUS_HEATERS_HEIGHT),
|
|
|
|
"Status heaters bitmap (status_heaters_bmp) dimensions don't match data."
|
|
|
|
);
|
|
|
|
|
2018-01-15 03:14:23 -06:00
|
|
|
#endif
|
2018-11-20 07:36:37 -06:00
|
|
|
|
2019-05-30 18:31:50 -05:00
|
|
|
//
|
|
|
|
// Chamber Bitmap Properties
|
|
|
|
//
|
|
|
|
#ifndef STATUS_CHAMBER_BYTEWIDTH
|
|
|
|
#define STATUS_CHAMBER_BYTEWIDTH BW(STATUS_CHAMBER_WIDTH)
|
|
|
|
#endif
|
2019-09-07 04:52:57 -05:00
|
|
|
#if STATUS_CHAMBER_WIDTH
|
2019-05-30 18:31:50 -05:00
|
|
|
|
|
|
|
#ifndef STATUS_CHAMBER_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - (STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8)
|
2019-05-30 18:31:50 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_CHAMBER_HEIGHT
|
|
|
|
#ifdef STATUS_CHAMBER_ANIM
|
|
|
|
#define STATUS_CHAMBER_HEIGHT(S) ((S) ? sizeof(status_chamber_on_bmp) / (STATUS_CHAMBER_BYTEWIDTH) : sizeof(status_chamber_bmp) / (STATUS_CHAMBER_BYTEWIDTH))
|
|
|
|
#else
|
|
|
|
#define STATUS_CHAMBER_HEIGHT(S) (sizeof(status_chamber_bmp) / (STATUS_CHAMBER_BYTEWIDTH))
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_CHAMBER_Y
|
|
|
|
#define STATUS_CHAMBER_Y(S) (20 - STATUS_CHAMBER_HEIGHT(S))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_CHAMBER_TEXT_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_CHAMBER_TEXT_X (STATUS_CHAMBER_X + 11)
|
2019-05-30 18:31:50 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
static_assert(
|
|
|
|
sizeof(status_chamber_bmp) == (STATUS_CHAMBER_BYTEWIDTH) * (STATUS_CHAMBER_HEIGHT(0)),
|
|
|
|
"Status chamber bitmap (status_chamber_bmp) dimensions don't match data."
|
|
|
|
);
|
|
|
|
#ifdef STATUS_CHAMBER_ANIM
|
|
|
|
static_assert(
|
|
|
|
sizeof(status_chamber_on_bmp) == (STATUS_CHAMBER_BYTEWIDTH) * (STATUS_CHAMBER_HEIGHT(1)),
|
|
|
|
"Status chamber bitmap (status_chamber_on_bmp) dimensions don't match data."
|
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
//
|
|
|
|
// Bed Bitmap Properties
|
|
|
|
//
|
|
|
|
#ifndef STATUS_BED_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_BED_BYTEWIDTH BW(STATUS_BED_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
2018-11-27 21:15:52 -06:00
|
|
|
#if STATUS_BED_WIDTH && !STATUS_HEATERS_WIDTH
|
2018-11-20 07:36:37 -06:00
|
|
|
|
|
|
|
#ifndef STATUS_BED_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_BED_X (LCD_PIXEL_WIDTH - (STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH + STATUS_BED_BYTEWIDTH) * 8)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_BED_HEIGHT
|
|
|
|
#ifdef STATUS_BED_ANIM
|
|
|
|
#define STATUS_BED_HEIGHT(S) ((S) ? sizeof(status_bed_on_bmp) / (STATUS_BED_BYTEWIDTH) : sizeof(status_bed_bmp) / (STATUS_BED_BYTEWIDTH))
|
|
|
|
#else
|
|
|
|
#define STATUS_BED_HEIGHT(S) (sizeof(status_bed_bmp) / (STATUS_BED_BYTEWIDTH))
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_BED_Y
|
|
|
|
#define STATUS_BED_Y(S) (20 - STATUS_BED_HEIGHT(S))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STATUS_BED_TEXT_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_BED_TEXT_X (STATUS_BED_X + 9)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
static_assert(
|
|
|
|
sizeof(status_bed_bmp) == (STATUS_BED_BYTEWIDTH) * (STATUS_BED_HEIGHT(0)),
|
|
|
|
"Status bed bitmap (status_bed_bmp) dimensions don't match data."
|
|
|
|
);
|
|
|
|
#ifdef STATUS_BED_ANIM
|
|
|
|
static_assert(
|
|
|
|
sizeof(status_bed_on_bmp) == (STATUS_BED_BYTEWIDTH) * (STATUS_BED_HEIGHT(1)),
|
|
|
|
"Status bed bitmap (status_bed_on_bmp) dimensions don't match data."
|
|
|
|
);
|
|
|
|
#endif
|
2018-01-31 18:43:33 -06:00
|
|
|
#endif
|
|
|
|
|
2018-11-20 07:36:37 -06:00
|
|
|
//
|
|
|
|
// Fan Bitmap Properties
|
|
|
|
//
|
|
|
|
#ifndef STATUS_FAN_BYTEWIDTH
|
2018-11-27 21:15:52 -06:00
|
|
|
#define STATUS_FAN_BYTEWIDTH BW(STATUS_FAN_WIDTH)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
2018-11-23 23:14:56 -06:00
|
|
|
#if STATUS_FAN_FRAMES
|
2018-11-20 07:36:37 -06:00
|
|
|
#ifndef STATUS_FAN_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_FAN_X (LCD_PIXEL_WIDTH - (STATUS_FAN_BYTEWIDTH) * 8)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_FAN_Y
|
|
|
|
#define STATUS_FAN_Y 1
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_FAN_TEXT_X
|
2019-09-07 04:52:57 -05:00
|
|
|
#define STATUS_FAN_TEXT_X (STATUS_FAN_X - 1)
|
2018-11-20 07:36:37 -06:00
|
|
|
#endif
|
|
|
|
#ifndef STATUS_FAN_TEXT_Y
|
|
|
|
#define STATUS_FAN_TEXT_Y 28
|
|
|
|
#endif
|
|
|
|
#ifndef STATUS_FAN_HEIGHT
|
|
|
|
#define STATUS_FAN_HEIGHT (sizeof(status_fan0_bmp) / (STATUS_FAN_BYTEWIDTH))
|
|
|
|
#endif
|
|
|
|
#define FAN_BMP_SIZE (STATUS_FAN_BYTEWIDTH) * (STATUS_FAN_HEIGHT)
|
|
|
|
static_assert(sizeof(status_fan0_bmp) == FAN_BMP_SIZE, "Status fan bitmap (status_fan0_bmp) dimensions don't match data.");
|
2018-11-23 23:14:56 -06:00
|
|
|
#if STATUS_FAN_FRAMES > 1
|
2018-11-20 07:36:37 -06:00
|
|
|
static_assert(sizeof(status_fan1_bmp) == FAN_BMP_SIZE, "Status fan bitmap (status_fan1_bmp) dimensions don't match data.");
|
2018-11-23 23:14:56 -06:00
|
|
|
#if STATUS_FAN_FRAMES > 2
|
2018-11-20 07:36:37 -06:00
|
|
|
static_assert(sizeof(status_fan2_bmp) == FAN_BMP_SIZE, "Status fan bitmap (status_fan2_bmp) dimensions don't match data.");
|
2018-11-23 23:14:56 -06:00
|
|
|
#if STATUS_FAN_FRAMES > 3
|
2018-11-20 07:36:37 -06:00
|
|
|
static_assert(sizeof(status_fan3_bmp) == FAN_BMP_SIZE, "Status fan bitmap (status_fan3_bmp) dimensions don't match data.");
|
|
|
|
#endif
|
2018-01-31 18:43:33 -06:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|