Skip to content

Support in 7in5B_HD Display #2

@jerometam

Description

@jerometam

I'm trying to port the script to support the 7in5B_HD, which is a 7.5" Black White Red ePaper screen by Waveshare. I tried to follow every pattern in the project, but nothing has changed on my screen. What's wrong with my code? The server is up and running, and I've tested with a browser, but I can't get it displayed on the ePaper screen. I've been trying for days already, no clues.

The log of the ESP32 seems fine:
␛[0;32mI (4203) updater: Requesting new status␛[0m
␛[0;32mI (4243) updater: Status = 200, content_length = 17078, ETag = xp96wtyln8zivklz7kf3f175ww551w26␛[0m
␛[0;32mI (4253) updater: Content_length = 17078␛[0m
␛[0;32mI (4323) display: Passing the new image to EPD␛[0m
␛[0;32mI (4323) EPD: Booting up display␛[0m
␛[0;32mI (4723) EPD: Received new PNG of size 17078␛[0m
␛[0;32mI (4763) EPD: Sending image␛[0m
␛[0;32mI (6543) EPD: Done␛[0m
␛[0;32mI (6743) display: Update took 2.54 seconds␛[0m
␛[0;32mI (6743) updater: Going to deep sleep 602.51 seconds until next update␛[0m

int EPD_7in5B_HD__init()
{
  // WAKE UP
  gpio_set_level(PIN_SPI_RST_NUM, 0);
  vTaskDelay(200 / portTICK_PERIOD_MS);

  gpio_set_level(PIN_SPI_RST_NUM, 1);
  vTaskDelay(200 / portTICK_PERIOD_MS);

  EPD_SendCommand(0x12, NULL, 0);                   //SWRESET
  EPD_WaitUntilIdle();

  EPD_SendCommand(0x46, "\xF7", 1);                 //Auto Write RAM
  EPD_WaitUntilIdle();

  EPD_SendCommand(0x47, "\xF7", 1);                 //Auto Write RAM
  EPD_WaitUntilIdle();

  EPD_SendCommand(0x0C, "\xAE\xC7\xC3\xC0\x40", 5); //Soft start setting
  EPD_SendCommand(0x01, "\xAF\x02\x01", 3);         //Set MUX as 527
  EPD_SendCommand(0x11, "\x01", 1);                 //Data entry mode
  EPD_SendCommand(0x44, "\x00\x00\x6F\x03", 4);
  EPD_SendCommand(0x45, "\xAF\x02\x00\x00", 4);
  EPD_SendCommand(0x3C, "\x01", 1);                 //VBD
  EPD_SendCommand(0x18, "\x80", 1);
  EPD_SendCommand(0x22, "\xB1", 1);
  EPD_SendCommand(0x20, NULL, 0);
  EPD_WaitUntilIdle();

  EPD_SendCommand(0x4E, "\x00\x00", 2);
  EPD_SendCommand(0x4F, "\xAF\x02", 2);
  EPD_SendCommand(0x4F, "\xAF\x02", 2);
  EPD_SendCommand(0x24, NULL, 0);                   //BLOCK
  EPD_SendCommand(0x10, NULL, 0);                   //DATA_START_TRANSMISSION_1
  vTaskDelay(2 / portTICK_PERIOD_MS);
  return 0;

}

void EPD_before_load()
{
  // Display image
  ESP_LOGI(EPD_TAG, "Booting up display");
  EPD_7in5B_HD__init();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions