smartpanle / PanelLan_esp32_arduino

PanelLan esp32 arduino lib, supports PanelLan displays, SC01, SC01_PLUS(ZX3D50CE08S), SC02(ZX4D30NE01S-UR), SC05(ZX7D00CE01S), KC01(ZX2D10GE01S), BC02(ZX3D95CE01S-TR), SC07(ZX4D30CE08S-4827)
MIT License
16 stars 3 forks source link

Hello_World.ino Build Error #10

Open gpena208777 opened 2 months ago

gpena208777 commented 2 months ago

error: 'BOARD_SC01_PLUS' was not declared in this scope; did you mean 'BOARD_SC01'?

`#include "PanelLan.h"

// BOARD_SC01, BOARD_SC01_PLUS, BOARD_SC02, BOARD_SC05, BOARD_KC01, BOARD_BC02
PanelLan tft(BOARD_SC01_PLUS);

void setup(void) {
  tft.begin();

  tft.setTextDatum(textdatum_t::middle_center);
  tft.setFont(&fonts::FreeSerifBold18pt7b);
  tft.drawString("HELLO WORLD", tft.width() / 2, tft.height() / 2);
}

void loop() {
  delay(20);
}`
EeeeBin commented 2 months ago

Please try to configure according to the readme, https://github.com/smartpanle/PanelLan_esp32_arduino?tab=readme-ov-file#board-configuration