epd-waveshare/examples
Jack Grigg a280a12170
EPD7in5 example
2019-11-15 23:58:08 +00:00
..
epd1in54_full Update examples to embedded-graphics="0.5.2" also 2019-08-18 17:58:48 +09:30
epd1in54_no_graphics Fix copypaste error 2019-08-21 21:41:46 +09:30
epd2in9_full Update examples to embedded-graphics="0.5.2" also 2019-08-18 17:58:48 +09:30
epd4in2_full Update examples to embedded-graphics="0.5.2" also 2019-08-18 17:58:48 +09:30
epd4in2_full_blue_pill Update examples to embedded-graphics="0.5.2" also 2019-08-18 17:58:48 +09:30
epd4in2_var_display_buffer Update examples to embedded-graphics="0.5.2" also 2019-08-18 17:58:48 +09:30
epd7in5_full EPD7in5 example 2019-11-15 23:58:08 +00:00
Readme.md Add Bluepill example & some other minor improvements (#28) 2019-04-06 09:09:56 +02:00

Readme.md

Examples:

All of these examples are projects of their own.

A few notes:

  • If not stated otherwise the example is for a Raspberry Pi running Linux.
  • epdXinYY_full showcase most of what can be done with this crate. This means that they are using graphics feature and use the DisplayXinYY with its buffer.

Special Examples:

epd4in2_var_display_buffer

This examples used the graphics feature with VarDisplay and therefore a variable buffer(size).

epd1in54_no_graphics (Fastest Example)

This example doesn't use the graphics feature and handles all the "drawing" by itself. It also has a speeddemonstration included.

epd4in2_full_blue_pill

Connect epd4in2 display to blue pill board:

  • BUSY -> A10
  • RST -> A9
  • DC -> A8
  • CS -> B12
  • CLK -> B13
  • DIN -> B15
  • GND -> G
  • VCC -> 3.3

For compiling and flashing, please refer to TeXitois blue pill quickstart.

Basically:

curl https://sh.rustup.rs -sSf | sh
rustup target add thumbv7m-none-eabi
sudo apt-get install gdb-arm-none-eabi openocd
cd epd4in2_full_blue_pill
# connect ST-Link v2 to the blue pill and the computer
# openocd in another terminal
cargo run --release

Ff you can't connect to openocd you might need to adapt your udev rules or use sudo (openOCD Problems)