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@0:6f162728dcca, 2018-07-24 (annotated)
- Committer:
- jauming
- Date:
- Tue Jul 24 02:58:08 2018 +0000
- Revision:
- 0:6f162728dcca
- Child:
- 2:84384f56bf3b
EinkShield for mbed-os
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jauming | 0:6f162728dcca | 1 | #include "mbed.h" |
jauming | 0:6f162728dcca | 2 | #include "EinkShield.h" |
jauming | 0:6f162728dcca | 3 | #include "image.h" |
jauming | 0:6f162728dcca | 4 | int main() { |
jauming | 0:6f162728dcca | 5 | EinkShield epd(EL029TR1, |
jauming | 0:6f162728dcca | 6 | D7, |
jauming | 0:6f162728dcca | 7 | D6, |
jauming | 0:6f162728dcca | 8 | D5, |
jauming | 0:6f162728dcca | 9 | D10, |
jauming | 0:6f162728dcca | 10 | D2, |
jauming | 0:6f162728dcca | 11 | D13, |
jauming | 0:6f162728dcca | 12 | D11); |
jauming | 0:6f162728dcca | 13 | |
jauming | 0:6f162728dcca | 14 | epd.EPD_Init(); |
jauming | 0:6f162728dcca | 15 | |
jauming | 0:6f162728dcca | 16 | //epd.EPD_Display_Red(); |
jauming | 0:6f162728dcca | 17 | //wait_ms(2000); |
jauming | 0:6f162728dcca | 18 | |
jauming | 0:6f162728dcca | 19 | while(1) { |
jauming | 0:6f162728dcca | 20 | epd.EPD_Display_KWR(sale2_KW, sale2_R); |
jauming | 0:6f162728dcca | 21 | wait_ms(2000); |
jauming | 0:6f162728dcca | 22 | } |
jauming | 0:6f162728dcca | 23 | } |