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.
|
main.cpp
- Committer:
- jauming
- Date:
- 2018-08-21
- Revision:
- 3:6c5c029a7812
- Parent:
- 2:84384f56bf3b
File content as of revision 3:6c5c029a7812:
#include "mbed.h" #include "EinkShield.h" #include "image.h" int main() { EinkShield epd(EL029TR1, D7, D6, D5, D10, D2, D13, D11); epd.EPD_Init(); while(1) { epd.EPD_Display_KWR(sales3_128x296_KW, sales3_128x296_R); wait_ms(2000); } }