You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ESP32-S3驱动Waveshare 2.66寸电子墨水屏无法显示文字求助

ESP32-S3驱动Waveshare 2.66寸黑白墨水屏无显示问题

本人刚接触ESP32,使用ESP32-S3-DevKitC-1开发板驱动Waveshare 2.66寸396×152黑白电子墨水屏时,屏幕无法显示文字,恳请协助排查问题。

所用硬件

  • 显示屏:Waveshare 2.66寸396×152黑白电子墨水屏
  • ESP开发板:ESP32-S3-DevKitC-1

引脚连接配置

  • BUSY: 9
  • RST: 12
  • DC: 11
  • CS: 10
  • CLK: 14
  • DIN: 13
  • GND: Gnd
  • VCC: 3v3

main.cpp代码

#include <Arduino.h>
#include <GxEPD2_BW.h>
#include <Fonts/FreeMonoBold9pt7b.h>


#define CS_PIN   10    
#define EPD_DC   11    
#define RST_PIN  12    
#define BUSY_PIN 9     

GxEPD2_BW<GxEPD2_266_BN, GxEPD2_266_BN::HEIGHT> display(GxEPD2_266_BN(CS_PIN, EPD_DC, RST_PIN, BUSY_PIN));

void setup() {

  Serial.begin(115200);

  display.init(115200);
  
  delay(1000); 

  display.setFullWindow();
  display.setRotation(1); 
  display.setTextColor(GxEPD_BLACK);
  
  display.fillScreen(GxEPD_WHITE);
  
  display.setCursor(10, 30);
  display.setFont(&FreeMonoBold9pt7b); 
  display.print("Hello World");
  
  display.display();
}

void loop() {

}

platform.io.ini配置

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
upload_protocol = esptool
upload_port = COM16
monitor_port = COM16
monitor_speed = 115200
upload_speed = 921600
lib_deps = 
    adafruit/Adafruit GFX Library@^1.11.11
    adafruit/Adafruit NeoPixel@^1.12.3
    adafruit/Adafruit BusIO@^1.16.2
    zinggjm/GxEPD2@^1.5.9

内容的提问来源于stack exchange,提问作者quintendc

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.16 19:15:13