e-Paper ESP8266 Driver Board User Manual
SOURCE CODE COMPILATI ON
The source code consists of following files:
loader.ino
is the main file. It has two functions:
setup
and
loop
. If you need to add/initialize
some other software components, do it in
setup
function.
srvr.h
describes functions of ESP8266 Wi-Fi server. To compile and run the loader as it is
you just need to change constants
ssid
and
password
as in your Wi-Fi router.
html.h, css.h
and
scripts.h
contain functions sending the web page of the loader to a
client’s browser. Due to limited size of data sent to the client, the page is divided on a few
small files, hasn’t any comments, not useful spaces and some new line characters.
Comments to the page content see in
page
directory of the source code.
buff.h
contains one byte-buffer and 3 functions for accumulating data of client’s POST
requests. The buffer is used for easier data converting from 1- ,2-bit pixel format of received
image data to 1- ,2- ,4-bit pixel format of e-Paper’s image.
epd1in54.h, epd2in13.h, epd2.7.h, epd2in9.h, epd4in2.h, epd7in5.h
contain initialization
functions for correspondent displays including data about brightness and saturation of
colors (lut-massives).
epd.h
contains functions controlling e-Paper states (initialization, color-channel selection,
loading, refreshing and turning to the deep sleeping mode).
Note: the source code is written in C (without any classes) to easier porting to other compilers.
Connect one of supported e-Paper to the board, compile & flash the software to ESP8266
memory by clicking the button “Load” (figure 2).
Note: if you didn’t change the code, you are trying to compile it the first time and the
compilation is failed, check you chose right board in Tools->Board (figure 3).