WT32-SC01 Plus #750
Byrdie31
started this conversation in
Device Configurations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ich habe WT32-SC01 Plus, Display gespiegelt. Welche setRotation / rgb_order / offset_rotation Einstellung ist korrekt?“ // ==== WT32-SC01 Plus Pins (ILI9488, 8080 parallel) ====
static const int PIN_LCD_D0 = 9;
static const int PIN_LCD_D1 = 46;
static const int PIN_LCD_D2 = 3;
static const int PIN_LCD_D3 = 8;
static const int PIN_LCD_D4 = 18;
static const int PIN_LCD_D5 = 17;
static const int PIN_LCD_D6 = 16;
static const int PIN_LCD_D7 = 15;
static const int PIN_LCD_WR = 47; // WR strobe
static const int PIN_LCD_DC = 0; // RS/D-C
static const int PIN_LCD_RST = 4; // Reset
static const int PIN_LCD_BL = 45; // Backlight
class LGFX : public lgfx::LGFX_Device {
lgfx::Panel_ILI9488 _panel;
lgfx::Bus_Parallel8 _bus;
public:
LGFX(void) {
// Bus-Konfiguration
auto b = _bus.config();
b.freq_write = 20000000; // 20 MHz
b.pin_wr = PIN_LCD_WR;
b.pin_rd = -1;
b.pin_rs = PIN_LCD_DC;
b.pin_d0 = PIN_LCD_D0;
b.pin_d1 = PIN_LCD_D1;
b.pin_d2 = PIN_LCD_D2;
b.pin_d3 = PIN_LCD_D3;
b.pin_d4 = PIN_LCD_D4;
b.pin_d5 = PIN_LCD_D5;
b.pin_d6 = PIN_LCD_D6;
b.pin_d7 = PIN_LCD_D7;
_bus.config(b);
_panel.setBus(&_bus);
}
};
LGFX lcd;
void setup() {
Serial.begin(115200);
pinMode(PIN_LCD_BL, OUTPUT);
digitalWrite(PIN_LCD_BL, HIGH); // Backlight an
// Display init
lcd.init();
lcd.setRotation(1); // 0=Portrait, 1/3=Landscape
lcd.setSwapBytes(true);
lcd.setColorDepth(16);
// Hintergrund & Text
lcd.fillScreen(TFT_BLACK);
lcd.setTextColor(TFT_WHITE, TFT_BLACK);
lcd.setFont(&fonts::DejaVu24);
lcd.setTextDatum(textdatum_t::middle_center);
int cx = lcd.width() / 2;
int cy = lcd.height() / 2; please help
Beta Was this translation helpful? Give feedback.
All reactions