Profe Tolocka
Published © GPL3+

CrowPanel: A Complete Solution for Your ePaper Projects

Need ePaper displays for your project? CrowPanel by Elecrow offer a ready-to-use solution. Explore models, features, and a practical example

BeginnerProtip1 hour360
CrowPanel: A Complete Solution for Your ePaper Projects

Things used in this project

Hardware components

Elecrow CrowPanel 5.79 inch E-paper Display
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

CrowPanel 5.79" example

C/C++
Example
#include "EPD.h"             // Functions to control the panel
#include "Example579.h"      // Image to load onto the panel

uint8_t ImageBW[27200];      // Array to store the color information of the image (800x272)

void setup() {
  
  pinMode(7, OUTPUT);        
  digitalWrite(7, HIGH);     // Activates the panel's power supply
  
  EPD_GPIOInit();            // Initializes control pins and interface     
  
  EPD_Init();                // Initializes the display
  
  EPD_Display_Clear();       // Clears the display at the hardware level
  EPD_Update();              // Refreshes the display to make it visible
  
  // Initializes a buffer for the image
  // Passes the image definition, size, rotation, and background color
  Paint_NewImage(ImageBW, EPD_W, EPD_H, Rotation, WHITE);  
 
  EPD_ShowPicture(0, 0, 792, 272, gImage_Example579, WHITE);  // Transfers the image to the buffer
  EPD_Display(ImageBW);       // Transfers the image from the buffer to the display
  EPD_Update();               // Refreshes to update
  
  EPD_DeepSleep();            // Activates low power mode
}

void loop() {
  // Does nothing
}

CrowPanel 5.79" example

Demo code

Credits

Profe Tolocka
13 projects • 15 followers
Teacher. Maker. Tech Content Creator https://linktr.ee/profetolocka
Contact

Comments

Please log in or sign up to comment.