-
-
Notifications
You must be signed in to change notification settings - Fork 26
color wave4i7color 640x400 B|R|Y|Blue|G|O
Martin F edited this page Mar 18, 2023
·
1 revision
- Size: 640 * 400 4.01" Black/Red/Yellow/Blue/Green/Orange (7 colors)
- Controller: SPD1656
- Status: Implemented, tested and merged in master
- Product page
- Important before buying: This epaper colors are very washed out if it's used in a low temperature environment. It should be only used in places that have warm temperatures (18°C and above) The models that Good-Display offers like GEDY073D46 are much better color-wise.
- Refresh time: 12 seconds
- For the same technology bigger 5.65 inches check the Wave517color class
- Render a color photo in this eink display
Test code:
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "color/wave4i7Color.h"
// Single SPI EPD
EpdSpi io;
Wave4i7Color display(io);
extern "C" { void app_main(); }
void app_main(void)
{
printf("CalEPD version: %s\n", CALEPD_VERSION);
// Initialize class
display.init(false);
// Draw some colorful squares
uint16_t rectW = display.width()/4; // For 640 = 160 pix width
display.fillRect( 1, 1, rectW, rectW, EPD_RED);
display.fillRect(rectW , 1, rectW, rectW, EPD_GREEN);
display.fillRect(rectW*2, 1, rectW, rectW, EPD_YELLOW);
display.fillRect(rectW*3, 1, rectW, rectW, EPD_BLUE);
// Refresh epaper
display.update();
}
Please check the Wave5i7color class to read more technical details about colors and how GFX / epaper buffer work together.
Every pixel in the epaper buffer takes 4 bits. Technically 3 will be enough but they make it 4 so it's easier for programming. So every byte holds 2 pixels.
Color BIN HEX
Black 0b0000 0x0
White 0b0001 0x1
Green 0b0010 0x2
Blue 0b0011 0x3
Red 0b0100 0x4
Yellow 0b0101 0x5
Orange 0b0110 0x6
Example 2 bytes: 4 color pixels
Data 0 0 1 0 | 0 1 0 1 0 1 0 0 | 0 1 1 0
Colors Green Yellow Red Orange
Byte 0x25 0x46
Revision v.1.3 | Firmware for ESP-IDF >= v. 4.3 Documentation written by Fasani Corp.
We are also launching a new company called Marespa.es that will help EU citizens find an affordable apartment in Spain. With the price of Rent going through the roof in 2024, this might be the moment to make an investment, if you plan to work from the spanish coast. With this project we are also supporting our open source projects.