Skynet3d icon indicating copy to clipboard operation
Skynet3d copied to clipboard

Issue while compiling

Open alex-schulster opened this issue 6 years ago • 0 comments

Hey, I need your help, I'm getting an issue while compiling Skynet3D

The error message is "'lcd' was not declared in this scope", Then, arduino software leads me to ultralcd_impl_HD44780.h

The error is in here according to the software

#if ENABLED(SDSUPPORT)

static void lcd_implementation_drawmenu_sd(const bool sel, const uint8_t row, const char* const pstr, const char* filename, char* const longFilename, const uint8_t concat, const char post_char) {
  UNUSED(pstr);
  char c;
  uint8_t n = LCD_WIDTH - concat;
  lcd.setCursor(0, row);
  lcd.print(sel ? '>' : ' ');
  if (longFilename[0]) {
    filename = longFilename;
    longFilename[n] = '\0';
  }
  while ((c = *filename) && n > 0) {
    n -= charset_mapper(c);
    filename++;
  }
  while (n--) lcd.print(' ');
  lcd.print(post_char);
}

The "lcd.setCursor(0, row);" is in red

Thank's for your help :) skynet3d_issue

alex-schulster avatar Jun 16 '18 10:06 alex-schulster