This example uses the amazing library provided by mcauser. Currently the support is very limited.
Download the latest esptool from here.
or use pip pip3 install esptool
Download the latest micropython binary from here.
esptool --chip esp32 --port <port> erase_flash
Port is the port number you use for uploading code.
Could be /dev/ttyUSB0
on linux, /dev/ttyACM0
on mac or a COM port on windows.
esptool --chip esp32 --port <port> --baud 460800 write_flash -z 0x1000 <path to micropython bin>
Press reset button on the back of paperd.ink Open a serial terminal at 115200 baud, you should see a python repl.
Step 1: Install rshell
pip3 install rshell
Start rshell in the directory where your code is.
rshell --buffer-size=30 -p <port> -a
The following command should be typed in rshell
cp epaper4in2.py /pyboard/
cp boot.py /pyboard/
After hitting reset you should be able to see the EPD update