Skip to content

paperdink/minimal_micropython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Micropython

This example uses the amazing library provided by mcauser. Currently the support is very limited.

Micropython installation guide

Step 1: Download the latest esptool

Download the latest esptool from here. or use pip pip3 install esptool

Step 2: Download micropython binary

Download the latest micropython binary from here.

Step 3: Erase flash on paperd.ink

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.

Step 3: Upload micropython

esptool --chip esp32 --port <port> --baud 460800 write_flash -z 0x1000 <path to micropython bin>

Step 4: Open a serial terminal

Press reset button on the back of paperd.ink Open a serial terminal at 115200 baud, you should see a python repl.

Uploading code

Step 1: Install rshell

pip3 install rshell

Step 2: Open rshell

Start rshell in the directory where your code is. rshell --buffer-size=30 -p <port> -a

Step 3: Upload code

The following command should be typed in rshell cp epaper4in2.py /pyboard/ cp boot.py /pyboard/

Step 4: Hit reset

After hitting reset you should be able to see the EPD update

More detailed guides

  1. rshell
  2. uPyCraft IDE

About

Minimal example for micropython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages