🐛 Spellcheck comments (#22496)
codespell -q 3 --builtin=clear,rare,informal,code -S ./Marlin/src/lcd/language -L alo,amin,endcode,stdio,uint
This commit is contained in:
		@@ -1321,7 +1321,7 @@ void MarlinUI::draw_status_screen() {
 | 
			
		||||
        y_map_pixels = pixels_per_y_mesh_pnt * (GRID_MAX_POINTS_Y);         // Directions fit nicely
 | 
			
		||||
 | 
			
		||||
        right_edge   = pixels_per_x_mesh_pnt * (GRID_MAX_POINTS_X) + 1;     // Find location of right edge within the character cell
 | 
			
		||||
        bottom_line  = pixels_per_y_mesh_pnt * (GRID_MAX_POINTS_Y) + 1;     // Find location of bottome line within the character cell
 | 
			
		||||
        bottom_line  = pixels_per_y_mesh_pnt * (GRID_MAX_POINTS_Y) + 1;     // Find location of bottom line within the character cell
 | 
			
		||||
 | 
			
		||||
        n_rows = bottom_line / (HD44780_CHAR_HEIGHT) + 1;
 | 
			
		||||
        n_cols = right_edge / (HD44780_CHAR_WIDTH) + 1;
 | 
			
		||||
 
 | 
			
		||||
@@ -98,7 +98,7 @@ TFTGLCD lcd;
 | 
			
		||||
#define COLOR_EDIT      '#'
 | 
			
		||||
#define COLOR_ERROR     '!'
 | 
			
		||||
 | 
			
		||||
#ifdef CONVERT_TO_EXT_ASCII   //use standart pseudographic symbols in ASCII table
 | 
			
		||||
#ifdef CONVERT_TO_EXT_ASCII   //use standard pseudographic symbols in ASCII table
 | 
			
		||||
  #define LR            179   //vertical line
 | 
			
		||||
  #define TRC           191   //top right corner
 | 
			
		||||
  #define BLC           192   //bottom left corner
 | 
			
		||||
@@ -401,7 +401,7 @@ static void center_text_P(PGM_P pstart, uint8_t y) {
 | 
			
		||||
    //
 | 
			
		||||
    uint8_t indent = (LCD_WIDTH - 8) / 2;
 | 
			
		||||
    // symbols 217 (bottom right corner) and 218 (top left corner) are using for letters in some languages
 | 
			
		||||
    // and they should be moved to begining ASCII table as spetial symbols
 | 
			
		||||
    // and they should be moved to beginning ASCII table as special symbols
 | 
			
		||||
    lcd.setCursor(indent, 0); lcd.write(TLC); lcd_put_u8str_P(PSTR("------"));  lcd.write(TRC);
 | 
			
		||||
    lcd.setCursor(indent, 1); lcd.write(LR);  lcd_put_u8str_P(PSTR("Marlin"));  lcd.write(LR);
 | 
			
		||||
    lcd.setCursor(indent, 2); lcd.write(BLC); lcd_put_u8str_P(PSTR("------"));  lcd.write(BRC);
 | 
			
		||||
@@ -733,7 +733,7 @@ Equal to 20x10 text LCD
 | 
			
		||||
|                    |
 | 
			
		||||
|  HE  BED  FAN      |
 | 
			
		||||
| ttc  ttc   %       | ttc - current temperature
 | 
			
		||||
| tts  tts  %%%      | tts - setted temperature, %%% - percent for FAN
 | 
			
		||||
| tts  tts  %%%      | tts - set temperature, %%% - percent for FAN
 | 
			
		||||
| ICO  ICO  ICO  ICO | ICO - icon 48x48, placed in 2 text lines
 | 
			
		||||
| ICO  ICO  ICO  ICO | ICO
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -447,7 +447,7 @@ void ST7920_Lite_Status_Screen::draw_static_elements() {
 | 
			
		||||
 * data buffer (DDRAM) to be used in conjunction with the graphics
 | 
			
		||||
 * bitmap buffer (CGRAM). The contents of the graphics buffer is
 | 
			
		||||
 * XORed with the data from the character generator. This allows
 | 
			
		||||
 * us to make the progess bar out of graphical data (the bar) and
 | 
			
		||||
 * us to make the progress bar out of graphical data (the bar) and
 | 
			
		||||
 * text data (the percentage).
 | 
			
		||||
 */
 | 
			
		||||
void ST7920_Lite_Status_Screen::draw_progress_bar(const uint8_t value) {
 | 
			
		||||
 
 | 
			
		||||
@@ -73,7 +73,7 @@ static const uint8_t u8g_dev_st7920_128x64_HAL_init_seq[] PROGMEM = {
 | 
			
		||||
  0x038,              // 8 Bit interface (DL=1), basic instruction set (RE=0)
 | 
			
		||||
  0x00C,              // display on, cursor & blink off; 0x08: all off
 | 
			
		||||
  0x006,              // Entry mode: Cursor move to right, DDRAM address counter (AC) plus 1, no shift
 | 
			
		||||
  0x002,              // disable scroll, enable CGRAM adress
 | 
			
		||||
  0x002,              // disable scroll, enable CGRAM address
 | 
			
		||||
  0x001,              // clear RAM, needs 1.6 ms
 | 
			
		||||
  U8G_ESC_DLY(100),   // delay 100 ms
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -208,7 +208,7 @@ void ChironTFT::ConfirmationRequest(const char * const msg)  {
 | 
			
		||||
    case AC_printer_resuming_from_power_outage:
 | 
			
		||||
    case AC_printer_printing:
 | 
			
		||||
    case AC_printer_paused: {
 | 
			
		||||
      // Heater timout, send acknowledgement
 | 
			
		||||
      // Heater timeout, send acknowledgement
 | 
			
		||||
      if (strcmp_P(msg, MARLIN_msg_heater_timeout) == 0) {
 | 
			
		||||
        pause_state = AC_paused_heater_timed_out;
 | 
			
		||||
        SendtoTFTLN(AC_msg_paused); // enable continue button
 | 
			
		||||
@@ -248,7 +248,7 @@ void ChironTFT::StatusChange(const char * const msg)  {
 | 
			
		||||
        printer_state = AC_printer_idle;
 | 
			
		||||
        msg_matched = true;
 | 
			
		||||
      }
 | 
			
		||||
      // If probing fails dont save the mesh raise the probe above the bad point
 | 
			
		||||
      // If probing fails don't save the mesh raise the probe above the bad point
 | 
			
		||||
      if (strcmp_P(msg, MARLIN_msg_probing_failed) == 0) {
 | 
			
		||||
        PlayTune(BEEPER_PIN, BeepBeepBeeep, 1);
 | 
			
		||||
        injectCommands_P(PSTR("G1 Z50 F500"));
 | 
			
		||||
@@ -622,7 +622,7 @@ void ChironTFT::PanelAction(uint8_t req) {
 | 
			
		||||
      break;
 | 
			
		||||
 | 
			
		||||
    case 14: { // A14 Start Printing
 | 
			
		||||
      // Allows printer to restart the job if we dont want to recover
 | 
			
		||||
      // Allows printer to restart the job if we don't want to recover
 | 
			
		||||
      if (printer_state == AC_printer_resuming_from_power_outage) {
 | 
			
		||||
        injectCommands_P(PSTR("M1000 C")); // Cancel recovery
 | 
			
		||||
        printer_state = AC_printer_idle;
 | 
			
		||||
 
 | 
			
		||||
@@ -93,7 +93,7 @@ public:
 | 
			
		||||
  // Helper for users of this class to estimate if an interaction would be blocking.
 | 
			
		||||
  static size_t GetFreeTxBuffer();
 | 
			
		||||
 | 
			
		||||
  // Checks two things: Can we confirm the presence of the display and has we initiliazed it.
 | 
			
		||||
  // Checks two things: Can we confirm the presence of the display and has we initialized it.
 | 
			
		||||
  // (both boils down that the display answered to our chatting)
 | 
			
		||||
  static inline bool isInitialized() { return Initialized; }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -466,7 +466,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
 | 
			
		||||
    VPHELPER(VP_WAITING_STATUS, nullptr, nullptr, ScreenHandler.DGUSLCD_SendWaitingStatusToDisplay),
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  // Messages for the User, shared by the popup and the kill screen. They cant be autouploaded as we do not buffer content.
 | 
			
		||||
  // Messages for the User, shared by the popup and the kill screen. They can't be autouploaded as we do not buffer content.
 | 
			
		||||
  { .VP = VP_MSGSTR1, .memadr = nullptr, .size = VP_MSGSTR1_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
  { .VP = VP_MSGSTR2, .memadr = nullptr, .size = VP_MSGSTR2_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
  { .VP = VP_MSGSTR3, .memadr = nullptr, .size = VP_MSGSTR3_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
 
 | 
			
		||||
@@ -282,7 +282,7 @@ constexpr uint16_t VP_BED_PID_P = 0x3710;
 | 
			
		||||
constexpr uint16_t VP_BED_PID_I = 0x3712;
 | 
			
		||||
constexpr uint16_t VP_BED_PID_D = 0x3714;
 | 
			
		||||
 | 
			
		||||
// Wating screen status
 | 
			
		||||
// Waiting screen status
 | 
			
		||||
constexpr uint16_t VP_WAITING_STATUS = 0x3800;
 | 
			
		||||
 | 
			
		||||
// SPs for certain variables...
 | 
			
		||||
 
 | 
			
		||||
@@ -161,7 +161,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
 | 
			
		||||
    }
 | 
			
		||||
  #endif
 | 
			
		||||
  char axiscode;
 | 
			
		||||
  unsigned int speed = 1500; // FIXME: get default feedrate for manual moves, dont hardcode.
 | 
			
		||||
  unsigned int speed = 1500; // FIXME: get default feedrate for manual moves, don't hardcode.
 | 
			
		||||
 | 
			
		||||
  switch (var.VP) {
 | 
			
		||||
    default: return;
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ public:
 | 
			
		||||
  static bool loop();
 | 
			
		||||
 | 
			
		||||
  // Send all 4 strings that are displayed on the infoscreen, confirmation screen and kill screen
 | 
			
		||||
  // The bools specifing whether the strings are in RAM or FLASH.
 | 
			
		||||
  // The bools specifying whether the strings are in RAM or FLASH.
 | 
			
		||||
  static void sendinfoscreen(const char *line1, const char *line2, const char *line3, const char *line4, bool l1inflash, bool l2inflash, bool l3inflash, bool liinflash);
 | 
			
		||||
 | 
			
		||||
  static void HandleUserConfirmationPopUp(uint16_t ConfirmVP, const char *line1, const char *line2, const char *line3, const char *line4, bool l1inflash, bool l2inflash, bool l3inflash, bool liinflash);
 | 
			
		||||
 
 | 
			
		||||
@@ -465,7 +465,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
 | 
			
		||||
    VPHELPER(VP_WAITING_STATUS, nullptr, nullptr, ScreenHandler.DGUSLCD_SendWaitingStatusToDisplay),
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  // Messages for the User, shared by the popup and the kill screen. They cant be autouploaded as we do not buffer content.
 | 
			
		||||
  // Messages for the User, shared by the popup and the kill screen. They can't be autouploaded as we do not buffer content.
 | 
			
		||||
  { .VP = VP_MSGSTR1, .memadr = nullptr, .size = VP_MSGSTR1_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
  { .VP = VP_MSGSTR2, .memadr = nullptr, .size = VP_MSGSTR2_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
  { .VP = VP_MSGSTR3, .memadr = nullptr, .size = VP_MSGSTR3_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
 
 | 
			
		||||
@@ -278,7 +278,7 @@ constexpr uint16_t VP_BED_PID_P = 0x3710;
 | 
			
		||||
constexpr uint16_t VP_BED_PID_I = 0x3712;
 | 
			
		||||
constexpr uint16_t VP_BED_PID_D = 0x3714;
 | 
			
		||||
 | 
			
		||||
// Wating screen status
 | 
			
		||||
// Waiting screen status
 | 
			
		||||
constexpr uint16_t VP_WAITING_STATUS = 0x3800;
 | 
			
		||||
 | 
			
		||||
// SPs for certain variables...
 | 
			
		||||
 
 | 
			
		||||
@@ -161,7 +161,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
 | 
			
		||||
    }
 | 
			
		||||
  #endif
 | 
			
		||||
  char axiscode;
 | 
			
		||||
  unsigned int speed = 1500; // FIXME: get default feedrate for manual moves, dont hardcode.
 | 
			
		||||
  unsigned int speed = 1500; // FIXME: get default feedrate for manual moves, don't hardcode.
 | 
			
		||||
 | 
			
		||||
  switch (var.VP) {
 | 
			
		||||
    default: return;
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ public:
 | 
			
		||||
  static bool loop();
 | 
			
		||||
 | 
			
		||||
  // Send all 4 strings that are displayed on the infoscreen, confirmation screen and kill screen
 | 
			
		||||
  // The bools specifing whether the strings are in RAM or FLASH.
 | 
			
		||||
  // The bools specifying whether the strings are in RAM or FLASH.
 | 
			
		||||
  static void sendinfoscreen(const char *line1, const char *line2, const char *line3, const char *line4, bool l1inflash, bool l2inflash, bool l3inflash, bool liinflash);
 | 
			
		||||
 | 
			
		||||
  static void HandleUserConfirmationPopUp(uint16_t ConfirmVP, const char *line1, const char *line2, const char *line3, const char *line4, bool l1inflash, bool l2inflash, bool l3inflash, bool liinflash);
 | 
			
		||||
 
 | 
			
		||||
@@ -785,7 +785,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
 | 
			
		||||
    VPHELPER(VP_WAITING_STATUS, nullptr, nullptr, ScreenHandler.DGUSLCD_SendWaitingStatusToDisplay),
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  // Messages for the User, shared by the popup and the kill screen. They cant be autouploaded as we do not buffer content.
 | 
			
		||||
  // Messages for the User, shared by the popup and the kill screen. They can't be autouploaded as we do not buffer content.
 | 
			
		||||
  //{.VP = VP_MSGSTR1, .memadr = nullptr, .size = VP_MSGSTR1_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM},
 | 
			
		||||
  //{.VP = VP_MSGSTR2, .memadr = nullptr, .size = VP_MSGSTR2_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM},
 | 
			
		||||
  //{.VP = VP_MSGSTR3, .memadr = nullptr, .size = VP_MSGSTR3_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM},
 | 
			
		||||
 
 | 
			
		||||
@@ -266,7 +266,7 @@ constexpr uint16_t VP_MOVE_OPTION = 0x3500;
 | 
			
		||||
// constexpr uint16_t VP_BED_PID_I = 0x3712;
 | 
			
		||||
// constexpr uint16_t VP_BED_PID_D = 0x3714;
 | 
			
		||||
 | 
			
		||||
// Wating screen status
 | 
			
		||||
// Waiting screen status
 | 
			
		||||
constexpr uint16_t VP_WAITING_STATUS = 0x3800;
 | 
			
		||||
 | 
			
		||||
// SPs for certain variables...
 | 
			
		||||
 
 | 
			
		||||
@@ -762,7 +762,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
 | 
			
		||||
    return;
 | 
			
		||||
 | 
			
		||||
  char axiscode;
 | 
			
		||||
  unsigned int speed = 1500; // FIXME: get default feedrate for manual moves, dont hardcode.
 | 
			
		||||
  unsigned int speed = 1500; // FIXME: get default feedrate for manual moves, don't hardcode.
 | 
			
		||||
 | 
			
		||||
  switch (var.VP) { // switch X Y Z or Home
 | 
			
		||||
    default: return;
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ public:
 | 
			
		||||
  static bool loop();
 | 
			
		||||
 | 
			
		||||
  // Send all 4 strings that are displayed on the infoscreen, confirmation screen and kill screen
 | 
			
		||||
  // The bools specifing whether the strings are in RAM or FLASH.
 | 
			
		||||
  // The bools specifying whether the strings are in RAM or FLASH.
 | 
			
		||||
  static void sendinfoscreen(const char *line1, const char *line2, const char *line3, const char *line4, bool l1inflash, bool l2inflash, bool l3inflash, bool liinflash);
 | 
			
		||||
 | 
			
		||||
  static void HandleUserConfirmationPopUp(uint16_t ConfirmVP, const char *line1, const char *line2, const char *line3, const char *line4, bool l1inflash, bool l2inflash, bool l3inflash, bool liinflash);
 | 
			
		||||
 
 | 
			
		||||
@@ -267,7 +267,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
 | 
			
		||||
    VPHELPER(VP_WAITING_STATUS, nullptr, nullptr, ScreenHandler.DGUSLCD_SendWaitingStatusToDisplay),
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  // Messages for the User, shared by the popup and the kill screen. They cant be autouploaded as we do not buffer content.
 | 
			
		||||
  // Messages for the User, shared by the popup and the kill screen. They can't be autouploaded as we do not buffer content.
 | 
			
		||||
  { .VP = VP_MSGSTR1, .memadr = nullptr, .size = VP_MSGSTR1_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
  { .VP = VP_MSGSTR2, .memadr = nullptr, .size = VP_MSGSTR2_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
  { .VP = VP_MSGSTR3, .memadr = nullptr, .size = VP_MSGSTR3_LEN, .set_by_display_handler = nullptr, .send_to_display_handler = ScreenHandler.DGUSLCD_SendStringToDisplayPGM },
 | 
			
		||||
 
 | 
			
		||||
@@ -268,7 +268,7 @@ constexpr uint16_t VP_BED_PID_P = 0x3710;
 | 
			
		||||
constexpr uint16_t VP_BED_PID_I = 0x3712;
 | 
			
		||||
constexpr uint16_t VP_BED_PID_D = 0x3714;
 | 
			
		||||
 | 
			
		||||
// Wating screen status
 | 
			
		||||
// Waiting screen status
 | 
			
		||||
constexpr uint16_t VP_WAITING_STATUS = 0x3800;
 | 
			
		||||
 | 
			
		||||
// SPs for certain variables...
 | 
			
		||||
 
 | 
			
		||||
@@ -161,7 +161,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
 | 
			
		||||
    }
 | 
			
		||||
  #endif
 | 
			
		||||
  char axiscode;
 | 
			
		||||
  unsigned int speed = 1500; // FIXME: get default feedrate for manual moves, dont hardcode.
 | 
			
		||||
  unsigned int speed = 1500; // FIXME: get default feedrate for manual moves, don't hardcode.
 | 
			
		||||
 | 
			
		||||
  switch (var.VP) {
 | 
			
		||||
    default: return;
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ public:
 | 
			
		||||
  static bool loop();
 | 
			
		||||
 | 
			
		||||
  // Send all 4 strings that are displayed on the infoscreen, confirmation screen and kill screen
 | 
			
		||||
  // The bools specifing whether the strings are in RAM or FLASH.
 | 
			
		||||
  // The bools specifying whether the strings are in RAM or FLASH.
 | 
			
		||||
  static void sendinfoscreen(const char *line1, const char *line2, const char *line3, const char *line4, bool l1inflash, bool l2inflash, bool l3inflash, bool liinflash);
 | 
			
		||||
 | 
			
		||||
  static void HandleUserConfirmationPopUp(uint16_t ConfirmVP, const char *line1, const char *line2, const char *line3, const char *line4, bool l1inflash, bool l2inflash, bool l3inflash, bool liinflash);
 | 
			
		||||
 
 | 
			
		||||
@@ -206,7 +206,7 @@ bool UIFlashStorage::is_present = false;
 | 
			
		||||
 | 
			
		||||
  /* In order to provide some degree of wear leveling, each data write to the
 | 
			
		||||
   * SPI Flash chip is appended to data that was already written before, until
 | 
			
		||||
   * the data storage area is completely filled. New data is written preceeded
 | 
			
		||||
   * the data storage area is completely filled. New data is written preceded
 | 
			
		||||
   * with a 32-bit delimiter 'LULZ', so that we can distinguish written and
 | 
			
		||||
   * unwritten data:
 | 
			
		||||
   *
 | 
			
		||||
 
 | 
			
		||||
@@ -1079,7 +1079,7 @@ void CLCD::CommandFifo::str(progmem_str data) {
 | 
			
		||||
 | 
			
		||||
void CLCD::init() {
 | 
			
		||||
  spi_init();                                  // Set Up I/O Lines for SPI and FT800/810 Control
 | 
			
		||||
  ftdi_reset();                                // Power down/up the FT8xx with the apropriate delays
 | 
			
		||||
  ftdi_reset();                                // Power down/up the FT8xx with the appropriate delays
 | 
			
		||||
 | 
			
		||||
  host_cmd(Use_Crystal ? CLKEXT : CLKINT, 0);
 | 
			
		||||
  host_cmd(FTDI::ACTIVE, 0);                        // Activate the System Clock
 | 
			
		||||
 
 | 
			
		||||
@@ -70,7 +70,7 @@
 | 
			
		||||
  *
 | 
			
		||||
  * CommandFifo::fgcolor               Set Graphic Item Foreground Color      *
 | 
			
		||||
  * CommandFifo::bgcolor               Set Graphic Item Background Color      *
 | 
			
		||||
  * CommandFifo::begin()               Begin Drawing a Primative              *
 | 
			
		||||
  * CommandFifo::begin()               Begin Drawing a Primitive              *
 | 
			
		||||
  * CommandFifo::mem_copy()            Copy a Block of Memory                 *
 | 
			
		||||
  * CommandFifo::append()              Append Commands to Current DL          *
 | 
			
		||||
  * CommandFifo::gradient_color()      Set 3D Button Highlight Color          *
 | 
			
		||||
 
 | 
			
		||||
@@ -65,7 +65,7 @@ class CommandProcessor : public CLCD::CommandFifo {
 | 
			
		||||
    uint8_t _style = 0;
 | 
			
		||||
 | 
			
		||||
  protected:
 | 
			
		||||
    // Returns the cannonical thickness of a widget (i.e. the height of a toggle element)
 | 
			
		||||
    // Returns the canonical thickness of a widget (i.e. the height of a toggle element)
 | 
			
		||||
    uint16_t widget_thickness() {
 | 
			
		||||
      CLCD::FontMetrics fm(_font);
 | 
			
		||||
      return fm.height * 20.0/16;
 | 
			
		||||
@@ -249,7 +249,7 @@ class CommandProcessor : public CLCD::CommandFifo {
 | 
			
		||||
      return toggle(x, y, w, h, text, state, options);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Contrained drawing routines. These constrain the widget inside a box for easier layout.
 | 
			
		||||
    // Constrained drawing routines. These constrain the widget inside a box for easier layout.
 | 
			
		||||
    // The FORCEDINLINE ensures that the code is inlined so that all the math is done at compile time.
 | 
			
		||||
 | 
			
		||||
    FORCEDINLINE CommandProcessor& track_linear(int16_t x, int16_t y, int16_t w, int16_t h, int16_t tag) {
 | 
			
		||||
 
 | 
			
		||||
@@ -108,7 +108,7 @@ namespace FTDI {
 | 
			
		||||
   *  - Dispatches onTouchStart and onTouchEnd events to the active screen.
 | 
			
		||||
   *  - Handles auto-repetition by sending onTouchHeld to the active screen periodically.
 | 
			
		||||
   *  - Plays touch feedback "click" sounds when appropriate.
 | 
			
		||||
   *  - Performs debouncing to supress spurious touch events.
 | 
			
		||||
   *  - Performs debouncing to suppress spurious touch events.
 | 
			
		||||
   */
 | 
			
		||||
  void EventLoop::process_events() {
 | 
			
		||||
    // If the LCD is processing commands, don't check
 | 
			
		||||
 
 | 
			
		||||
@@ -272,7 +272,7 @@ class GenericPolyUI {
 | 
			
		||||
      if (clip) {
 | 
			
		||||
        // Clipping reduces the number of pixels that are
 | 
			
		||||
        // filled, allowing more complex shapes to be drawn
 | 
			
		||||
        // in the alloted time.
 | 
			
		||||
        // in the allotted time.
 | 
			
		||||
        bounds(r, x, y, w, h);
 | 
			
		||||
        cmd.cmd(SAVE_CONTEXT());
 | 
			
		||||
        cmd.cmd(SCISSOR_XY(x, y));
 | 
			
		||||
 
 | 
			
		||||
@@ -41,7 +41,7 @@
 | 
			
		||||
 *        ...
 | 
			
		||||
 *   p.end_fill();
 | 
			
		||||
 *
 | 
			
		||||
 * Based on the example from "Applicaton Note AN_334, FT801 Polygon Application":
 | 
			
		||||
 * Based on the example from "Application Note AN_334, FT801 Polygon Application":
 | 
			
		||||
 *
 | 
			
		||||
 *   https://brtchip.com/wp-content/uploads/Support/Documentation/Application_Notes/ICs/EVE/AN_334-FT801_Polygon_Application.pdf
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
@@ -152,7 +152,7 @@ class UIScreen {
 | 
			
		||||
#define AT_SCREEN(screen)     (current_screen.getType() == current_screen.lookupScreen(screen::onRedraw))
 | 
			
		||||
#define IS_PARENT_SCREEN(screen) (current_screen.peek() == current_screen.lookupScreen(screen::onRedraw))
 | 
			
		||||
 | 
			
		||||
/************************** CACHED VS UNCHACHED SCREENS ***************************/
 | 
			
		||||
/************************** CACHED VS UNCACHED SCREENS ***************************/
 | 
			
		||||
 | 
			
		||||
class UncachedScreen {
 | 
			
		||||
  public:
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,7 @@
 | 
			
		||||
 | 
			
		||||
/* tiny_interval_t downsamples a 32-bit millis() value
 | 
			
		||||
   into a 8-bit value which can record periods of
 | 
			
		||||
   a few seconds with a rougly 1/16th of second
 | 
			
		||||
   a few seconds with a roughly 1/16th of second
 | 
			
		||||
   resolution. This allows us to measure small
 | 
			
		||||
   intervals without needing to use four-byte counters.
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
@@ -164,7 +164,7 @@ class Parser:
 | 
			
		||||
 | 
			
		||||
  def process_svg_path_data_cmd(self, id, cmd, a, b):
 | 
			
		||||
    """Converts the various types of moves into L or M commands
 | 
			
		||||
    and dispatches to process_svg_path_L_or_M for futher processing."""
 | 
			
		||||
    and dispatches to process_svg_path_L_or_M for further processing."""
 | 
			
		||||
    if cmd == "Z" or cmd == "z":
 | 
			
		||||
      self.process_svg_path_L_or_M("L", self.initial_x, self.initial_y)
 | 
			
		||||
    elif cmd == "H":
 | 
			
		||||
 
 | 
			
		||||
@@ -204,7 +204,7 @@ void SPIFlashStorage::flushPage() {
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Part of the m_pageData was compressed, so ajust the pointers, freeing what was processed, shift the buffer
 | 
			
		||||
    // Part of the m_pageData was compressed, so adjust the pointers, freeing what was processed, shift the buffer
 | 
			
		||||
    // TODO: To avoid this copy, use a circular buffer
 | 
			
		||||
    memmove(m_pageData, m_pageData + inputProcessed, m_pageDataUsed - inputProcessed);
 | 
			
		||||
    m_pageDataUsed -= inputProcessed;
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
 *
 | 
			
		||||
 * When reading, it loads a full page from SPI Flash at once and
 | 
			
		||||
 * keeps it in a private SRAM buffer. Data is loaded as needed to
 | 
			
		||||
 * fullfill requests. Sequential reads are optimal.
 | 
			
		||||
 * fulfill requests. Sequential reads are optimal.
 | 
			
		||||
 *
 | 
			
		||||
 *    SPIFlashStorage.beginRead(myStartAddress);
 | 
			
		||||
 *    while (there is data to read)
 | 
			
		||||
 
 | 
			
		||||
@@ -237,7 +237,7 @@ void update_spi_flash() {
 | 
			
		||||
  uint8_t command_buf[512];
 | 
			
		||||
 | 
			
		||||
  W25QXX.init(SPI_QUARTER_SPEED);
 | 
			
		||||
  //read back the gcode command befor erase spi flash
 | 
			
		||||
  //read back the gcode command before erase spi flash
 | 
			
		||||
  W25QXX.SPI_FLASH_BufferRead((uint8_t *)&command_buf, GCODE_COMMAND_ADDR, sizeof(command_buf));
 | 
			
		||||
  W25QXX.SPI_FLASH_SectorErase(VAR_INF_ADDR);
 | 
			
		||||
  W25QXX.SPI_FLASH_BufferWrite((uint8_t *)&gCfgItems, VAR_INF_ADDR, sizeof(gCfgItems));
 | 
			
		||||
@@ -248,7 +248,7 @@ void update_gcode_command(int addr,uint8_t *s) {
 | 
			
		||||
  uint8_t command_buf[512];
 | 
			
		||||
 | 
			
		||||
  W25QXX.init(SPI_QUARTER_SPEED);
 | 
			
		||||
  //read back the gcode command befor erase spi flash
 | 
			
		||||
  //read back the gcode command before erase spi flash
 | 
			
		||||
  W25QXX.SPI_FLASH_BufferRead((uint8_t *)&command_buf, GCODE_COMMAND_ADDR, sizeof(command_buf));
 | 
			
		||||
  W25QXX.SPI_FLASH_SectorErase(VAR_INF_ADDR);
 | 
			
		||||
  W25QXX.SPI_FLASH_BufferWrite((uint8_t *)&gCfgItems, VAR_INF_ADDR, sizeof(gCfgItems));
 | 
			
		||||
 
 | 
			
		||||
@@ -503,7 +503,7 @@ uint32_t Pic_Info_Write(uint8_t *P_name, uint32_t P_size) {
 | 
			
		||||
      disp_assets_update_progress("Reading files...");
 | 
			
		||||
      dir_t d;
 | 
			
		||||
      while (dir.readDir(&d, card.longFilename) > 0) {
 | 
			
		||||
        // If we dont get a long name, but gets a short one, try it
 | 
			
		||||
        // If we don't get a long name, but gets a short one, try it
 | 
			
		||||
        if (card.longFilename[0] == 0 && d.name[0] != 0)
 | 
			
		||||
          dosName2LongName((const char*)d.name, card.longFilename);
 | 
			
		||||
        if (card.longFilename[0] == 0) continue;
 | 
			
		||||
 
 | 
			
		||||
@@ -54,7 +54,7 @@ void printer_state_polling() {
 | 
			
		||||
 | 
			
		||||
        gcode.process_subcommands_now_P(PSTR("M25"));
 | 
			
		||||
 | 
			
		||||
        //save the positon
 | 
			
		||||
        //save the position
 | 
			
		||||
        uiCfg.current_x_position_bak = current_position.x;
 | 
			
		||||
        uiCfg.current_y_position_bak = current_position.y;
 | 
			
		||||
        uiCfg.current_z_position_bak = current_position.z;
 | 
			
		||||
 
 | 
			
		||||
@@ -200,7 +200,7 @@ void WifiSerial::flush() {
 | 
			
		||||
    // nop, the interrupt handler will free up space for us
 | 
			
		||||
  }
 | 
			
		||||
  // If we get here, nothing is queued anymore (DRIE is disabled) and
 | 
			
		||||
  // the hardware finished tranmission (TXC is set).
 | 
			
		||||
  // the hardware finished transmission (TXC is set).
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool WifiSerial::isHalfDuplex() const { return _serial.pin_rx == NC; }
 | 
			
		||||
 
 | 
			
		||||
@@ -712,7 +712,7 @@ constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
 | 
			
		||||
     *     This is used to achieve more rapid stepping on kinematic machines.
 | 
			
		||||
     *
 | 
			
		||||
     * Currently used by the _lcd_move_xyz function in menu_motion.cpp
 | 
			
		||||
     * and the ubl_map_move_to_xy funtion in menu_ubl.cpp.
 | 
			
		||||
     * and the ubl_map_move_to_xy function in menu_ubl.cpp.
 | 
			
		||||
     */
 | 
			
		||||
    void ManualMove::task() {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -50,7 +50,7 @@ bool CANVAS::ToScreen() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CANVAS::SetBackground(uint16_t color) {
 | 
			
		||||
  /* TODO: test and optimize perfomance */
 | 
			
		||||
  /* TODO: test and optimize performance */
 | 
			
		||||
  /*
 | 
			
		||||
  uint32_t count = (endLine - startLine) * width;
 | 
			
		||||
  uint16_t *pixel = buffer;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user