EInkShield_HelloWorld

Dependencies:   libEinkShield_mbedcli_ARM_KL25Z

Fork of EInkShield_HelloWorld by E Ink

The actual display component with e-paper and Mbed board

/media/uploads/jauming/imag1222_1k_2.png

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

/media/uploads/jauming/2a_peripherals_ios_mbed-driving-board-function-500_switches.jpg

Pinout

/media/uploads/jauming/mbed_pinout_v05.png

Typical connection

  • Compatible with Arduino Headers /media/uploads/jauming/3_simple_procedures_how_to_connect_the_component_to_the_main_board_compatible_with_arduino_headers_typical_connection.jpg

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.
Committer:
jauming
Date:
Tue Aug 21 02:48:57 2018 +0000
Revision:
3:6c5c029a7812
Parent:
2:84384f56bf3b
EinkShield_HelloWorld_ARM_KL25Z

Who changed what in which revision?

UserRevisionLine numberNew 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 2:84384f56bf3b 4 int main() {
jauming 2:84384f56bf3b 5
jauming 0:6f162728dcca 6 EinkShield epd(EL029TR1,
jauming 0:6f162728dcca 7 D7,
jauming 0:6f162728dcca 8 D6,
jauming 0:6f162728dcca 9 D5,
jauming 0:6f162728dcca 10 D10,
jauming 0:6f162728dcca 11 D2,
jauming 0:6f162728dcca 12 D13,
jauming 0:6f162728dcca 13 D11);
jauming 0:6f162728dcca 14
jauming 0:6f162728dcca 15 epd.EPD_Init();
jauming 3:6c5c029a7812 16
jauming 0:6f162728dcca 17 while(1) {
jauming 2:84384f56bf3b 18
jauming 3:6c5c029a7812 19 epd.EPD_Display_KWR(sales3_128x296_KW, sales3_128x296_R);
jauming 3:6c5c029a7812 20 wait_ms(2000);
jauming 3:6c5c029a7812 21
jauming 0:6f162728dcca 22 }
jauming 0:6f162728dcca 23 }