• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeArduinoShieldsSimple example for E-paper
Previous Next

Simple example for E-paper

Posted by: Alvin Jin , March 5, 2014

[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Introduction” tab_id=”1394068994-1-1″][vc_column_text]Electronic paper, e-paper and electronic ink are display technologies which are designed to mimic the appearance of ordinary ink on paper. Unlike conventional backlit flat panel displays which emit light, electronic paper displays reflect light like ordinary paper, theoretically making it more comfortable to read, and giving the surface a wider viewing angle compared to conventional displays. The contrast ratio in available displays as of 2008 might be described as similar to that of newspaper, though newly developed displays are slightly better. An ideal e-paper display can be read in direct sunlight without the image appearing to fade.

There are some updates on this version.

  • Has 5V input to solve  when displaying “pcDuino” on the E-Paper Shield the pcDuino will reboot.
  • At the first version the SPI interface cross the Arduino SPI, we fix this issue, now we can use hard SPI interface, improved display speed.

[/vc_column_text][/vc_tab][vc_tab title=”Wiring Diagram” tab_id=”1394068994-2-52″][vc_column_text]WP_20140124_001-11

Just plug E-paper Shield to pcDuino or Arduino[/vc_column_text][/vc_tab][vc_tab title=”Experimental introduction” tab_id=”1394073266280-2-6″][vc_column_text]This experiment is let E-Paper Shield display “pcDuino”  

1. Use Image2Lcd
How to use Image2lcd software please refer to other post
http://learn.linksprite.com/pcduino/arduino-ish-program/uart/electronic-paper/
2. Introduce some commands
E-Paper Shield uses SPI interface, in order to improve refresh speed, we suggest to use hard SPI and D9 for status output. After sending every command or data, need to judge and wait until the module is free. (If the module is idle, the level of status output pin D9 wiil be turned. If the module do not turn level for a long time, we can pull CS signal to end the current command and get back to idle status. (Note: When refreshing image data, it will take a longer time). For example,
void ClearScring(void)
{
  bool DeviceStatus;
  DeviceStatus = digitalRead(STATUS_PIN); //Record the status before sending
  digitalWrite(CS_PIN,LOW);//Low CS signal
  SpiExchangeByte(3); //Send commands
  while(digitalRead(STATUS_PIN) == DeviceStatus)//Judge and wait for module to idle
  {
     ;
  }
  digitalWrite(CS_PIN,HIGH);//High CS singal
}
E-paper Shield support 5 commands, as shown:
“0×01”, set image’s width
“0×02”, set image’s height
“0×03:,  clear the screen
“0×04”, send image data and display
“0×05”, display default image
WP_20140113_001

[/vc_column_text][/vc_tab][vc_tab title=”Dowanload” tab_id=”1394080249972-3-10″][vc_column_text]Download epdtest
[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Shields

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors