EInkShield_HelloWorld
Dependencies: libEinkShield_mbedcli_ARM_KL25Z
Fork of EInkShield_HelloWorld by
The actual display component with e-paper and Mbed board
Key Features
- SPI interface to EPD display
- Gray level support(Black, White and Red)
- Flash memory - 128MB
- One GPIO connected to LED
- Four push buttons for user feedback
Peripherals/IOs
Pinout
Typical connection
- Compatible with Arduino Headers
Datasheet
Program and Library
Import programEinkShield_HelloWorld_ARM_KL25Z
EInkShield_HelloWorld
Import librarylibEinkShield_mbedcli_ARM_KL25Z
libEinkShield_mbedcli_ARM_KL25Z
Import librarylibEinkShield_mbedcli_ARM_K22F
libEinkShield_mbedcli_ARM_K22F
Import librarylibEinkShield_mbedcli_ARM_NUCLEO_F446RE
libEinkShield_mbedcli_ARM_NUCLEO_F446RE
Import library
Public Member Functions |
|
EinkShield (EPD_driver driver, PinName bsi_pin, PinName rstn_pin, PinName busyn_pin, PinName csb_pin, PinName dc_pin, PinName scl_pin, PinName sda_pin) | |
Constructor to set pin assignment and driver.
|
|
void | EPD_Init (void) |
Driver initial.
|
|
void | EPD_Display_KWR (unsigned char const *img_kw, unsigned char const *img_r) |
Display image with color: black, white and red.
|
|
void | EPD_Display_Red (void) |
Display full screen red.
|
Diff: main.cpp
- Revision:
- 0:6f162728dcca
- Child:
- 2:84384f56bf3b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jul 24 02:58:08 2018 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "EinkShield.h" +#include "image.h" +int main() { + EinkShield epd(EL029TR1, + D7, + D6, + D5, + D10, + D2, + D13, + D11); + + epd.EPD_Init(); + + //epd.EPD_Display_Red(); + //wait_ms(2000); + + while(1) { + epd.EPD_Display_KWR(sale2_KW, sale2_R); + wait_ms(2000); + } +}