|
@@ -598,6 +598,105 @@
|
598
|
598
|
|
599
|
599
|
#endif // !STATUS_HEATERS_WIDTH && !STATUS_HOTEND1_WIDTH
|
600
|
600
|
|
|
601
|
+// LASER / SPINDLE
|
|
602
|
+#if !STATUS_CUTTER_WIDTH && HAS_CUTTER
|
|
603
|
+ #define STATUS_CUTTER_WIDTH 24
|
|
604
|
+ #define STATUS_CUTTER_X 80
|
|
605
|
+ #if ENABLED(LASER_FEATURE)
|
|
606
|
+ #ifdef STATUS_CUTTER_ANIM
|
|
607
|
+ const unsigned char status_cutter_on_bmp[] PROGMEM = {
|
|
608
|
+ B00000000,B00100100,B00000000,
|
|
609
|
+ B00000000,B01100110,B00000000,
|
|
610
|
+ B00000000,B11000011,B00000000,
|
|
611
|
+ B00000001,B10011001,B10000000,
|
|
612
|
+ B00000011,B00100100,B11000000,
|
|
613
|
+ B00000000,B01000010,B00000000,
|
|
614
|
+ B00000000,B01000010,B00000000,
|
|
615
|
+ B00000011,B00100100,B11000000,
|
|
616
|
+ B00000001,B10011001,B10000000,
|
|
617
|
+ B00000000,B11000011,B00000000,
|
|
618
|
+ B00000000,B01100110,B00000000,
|
|
619
|
+ B00000000,B00100100,B00000000
|
|
620
|
+ };
|
|
621
|
+ const unsigned char status_cutter_bmp[] PROGMEM = {
|
|
622
|
+ B00000000,B00100100,B00000000,
|
|
623
|
+ B00000000,B01100110,B00000000,
|
|
624
|
+ B00000000,B00000000,B00000000,
|
|
625
|
+ B00000001,B00000000,B10000000,
|
|
626
|
+ B00000011,B00000000,B11000000,
|
|
627
|
+ B00000000,B00011000,B00000000,
|
|
628
|
+ B00000000,B00011000,B00000000,
|
|
629
|
+ B00000011,B00000000,B11000000,
|
|
630
|
+ B00000001,B00000000,B10000000,
|
|
631
|
+ B00000000,B00000000,B00000000,
|
|
632
|
+ B00000000,B01100110,B00000000,
|
|
633
|
+ B00000000,B00100100,B00000000
|
|
634
|
+ };
|
|
635
|
+ #else
|
|
636
|
+ const unsigned char status_cutter_bmp[] PROGMEM = {
|
|
637
|
+ B00000000,B00100100,B00000000,
|
|
638
|
+ B00000000,B01100110,B00000000,
|
|
639
|
+ B00000000,B11000011,B00000000,
|
|
640
|
+ B00000001,B10000001,B10000000,
|
|
641
|
+ B00000011,B00000000,B11000000,
|
|
642
|
+ B00000000,B00000000,B00000000,
|
|
643
|
+ B00000000,B00000000,B00000000,
|
|
644
|
+ B00000011,B00000000,B11000000,
|
|
645
|
+ B00000001,B10000001,B10000000,
|
|
646
|
+ B00000000,B11000011,B00000000,
|
|
647
|
+ B00000000,B01100110,B00000000,
|
|
648
|
+ B00000000,B00100100,B00000000
|
|
649
|
+ };
|
|
650
|
+ #endif
|
|
651
|
+ #else
|
|
652
|
+ #ifdef STATUS_CUTTER_ANIM
|
|
653
|
+ const unsigned char status_cutter_on_bmp[] PROGMEM = {
|
|
654
|
+ B00000001,B11111110,B10000000,
|
|
655
|
+ B00000000,B11000000,B00000000,
|
|
656
|
+ B00000001,B10000000,B10000000,
|
|
657
|
+ B00000001,B00000000,B10000000,
|
|
658
|
+ B00000001,B11111100,B10000000,
|
|
659
|
+ B00000000,B11100000,B00000000,
|
|
660
|
+ B00000001,B11000000,B10000000,
|
|
661
|
+ B00000000,B10000001,B00000000,
|
|
662
|
+ B00000000,B01111010,B00000000,
|
|
663
|
+ B00000000,B00110100,B00000000,
|
|
664
|
+ B00000000,B00011000,B00000000,
|
|
665
|
+ B00000000,B00000000,B00000000
|
|
666
|
+ };
|
|
667
|
+ const unsigned char status_cutter_bmp[] PROGMEM = {
|
|
668
|
+ B00000001,B11111110,B10000000,
|
|
669
|
+ B00000000,B11000000,B00000000,
|
|
670
|
+ B00000001,B10000000,B10000000,
|
|
671
|
+ B00000001,B00000000,B10000000,
|
|
672
|
+ B00000001,B11111100,B10000000,
|
|
673
|
+ B00000000,B11100000,B00000000,
|
|
674
|
+ B00000001,B11000000,B10000000,
|
|
675
|
+ B00000000,B10000001,B00000000,
|
|
676
|
+ B00000000,B01111010,B00000000,
|
|
677
|
+ B00000000,B00110100,B00000000,
|
|
678
|
+ B00000000,B00011000,B00000000,
|
|
679
|
+ B00000000,B00000000,B00000000
|
|
680
|
+ };
|
|
681
|
+ #else
|
|
682
|
+ const unsigned char status_cutter_bmp[] PROGMEM = {
|
|
683
|
+ B00000001,B11000010,B10000000,
|
|
684
|
+ B00000001,B00011100,B10000000,
|
|
685
|
+ B00000000,B11100001,B00000000,
|
|
686
|
+ B00000001,B00001110,B10000000,
|
|
687
|
+ B00000001,B01110000,B10000000,
|
|
688
|
+ B00000000,B10000111,B10000000,
|
|
689
|
+ B00000001,B00111111,B10000000,
|
|
690
|
+ B00000000,B11111111,B00000000,
|
|
691
|
+ B00000000,B01111110,B00000000,
|
|
692
|
+ B00000000,B00111100,B00000000,
|
|
693
|
+ B00000000,B00011000,B00000000,
|
|
694
|
+ B00000000,B00000000,B00000000
|
|
695
|
+ };
|
|
696
|
+ #endif
|
|
697
|
+ #endif
|
|
698
|
+#endif // LASER / SPINDLE
|
|
699
|
+
|
601
|
700
|
//
|
602
|
701
|
// Default Status Screen Bed bitmaps
|
603
|
702
|
//
|
|
@@ -1468,6 +1567,51 @@
|
1468
|
1567
|
#endif
|
1469
|
1568
|
|
1470
|
1569
|
//
|
|
1570
|
+// Cutter Bitmap Properties
|
|
1571
|
+//
|
|
1572
|
+#ifndef STATUS_CUTTER_BYTEWIDTH
|
|
1573
|
+ #define STATUS_CUTTER_BYTEWIDTH BW(STATUS_CUTTER_WIDTH)
|
|
1574
|
+#endif
|
|
1575
|
+#if STATUS_CUTTER_WIDTH
|
|
1576
|
+
|
|
1577
|
+ #ifndef STATUS_CUTTER_X
|
|
1578
|
+ #define STATUS_CUTTER_X (LCD_PIXEL_WIDTH - (STATUS_CUTTER_BYTEWIDTH + STATUS_CUTTER_BYTEWIDTH) * 8)
|
|
1579
|
+ #endif
|
|
1580
|
+
|
|
1581
|
+ #ifndef STATUS_CUTTER_HEIGHT
|
|
1582
|
+ #ifdef STATUS_CUTTER_ANIM
|
|
1583
|
+ #define STATUS_CUTTER_HEIGHT(S) ((S) ? sizeof(status_cutter_on_bmp) / (STATUS_CUTTER_BYTEWIDTH) : sizeof(status_cutter_bmp) / (STATUS_CUTTER_BYTEWIDTH))
|
|
1584
|
+ #else
|
|
1585
|
+ #define STATUS_CUTTER_HEIGHT(S) (sizeof(status_cutter_bmp) / (STATUS_CUTTER_BYTEWIDTH))
|
|
1586
|
+ #endif
|
|
1587
|
+ #endif
|
|
1588
|
+
|
|
1589
|
+ #ifndef STATUS_CUTTER_Y
|
|
1590
|
+ #define STATUS_CUTTER_Y(S) 4
|
|
1591
|
+ #endif
|
|
1592
|
+
|
|
1593
|
+ #ifndef STATUS_CUTTER_TEXT_X
|
|
1594
|
+ #define STATUS_CUTTER_TEXT_X (STATUS_CUTTER_X -1)
|
|
1595
|
+ #endif
|
|
1596
|
+
|
|
1597
|
+ #ifndef STATUS_CUTTER_TEXT_Y
|
|
1598
|
+ #define STATUS_CUTTER_TEXT_Y 28
|
|
1599
|
+ #endif
|
|
1600
|
+
|
|
1601
|
+ static_assert(
|
|
1602
|
+ sizeof(status_cutter_bmp) == (STATUS_CUTTER_BYTEWIDTH) * (STATUS_CUTTER_HEIGHT(0)),
|
|
1603
|
+ "Status cutter bitmap (status_cutter_bmp) dimensions don't match data."
|
|
1604
|
+ );
|
|
1605
|
+ #ifdef STATUS_CUTTER_ANIM
|
|
1606
|
+ static_assert(
|
|
1607
|
+ sizeof(status_cutter_on_bmp) == (STATUS_CUTTER_BYTEWIDTH) * (STATUS_CUTTER_HEIGHT(1)),
|
|
1608
|
+ "Status cutter bitmap (status_cutter_on_bmp) dimensions don't match data."
|
|
1609
|
+ );
|
|
1610
|
+ #endif
|
|
1611
|
+
|
|
1612
|
+#endif
|
|
1613
|
+
|
|
1614
|
+//
|
1471
|
1615
|
// Chamber Bitmap Properties
|
1472
|
1616
|
//
|
1473
|
1617
|
#ifndef STATUS_CHAMBER_BYTEWIDTH
|