summaryrefslogtreecommitdiff
path: root/source/microcontrollers/inkplate/index.rst
blob: d1839620b94e8d25f6cfa9522f970bd0913bdd49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
**********
 Inkplate
**********

Notes on the Inkplate_ boards.

.. _Inkplate: https://soldered.com/collections/inkplate-e-paper-displays/

MicroPython
===========

Micropython for all of the Inkplate boards can be downloaded by cloning
the repository::

   $ git clone https://github.com/SolderedElectronics/Inkplate-micropython.git

then the firmware can be flashed directly with esptool::

   $ esptool --port /dev/ttyUSB0 --chip esp32 --baud 115200 write_flash \
     --flash_mode keep --flash_size keep --erase-all 0x1000 \
     Inkplate-firmware.bin

under Debian, you may need to use ``--no-stub``, because of #1043168_::

   $ esptool --port /dev/ttyUSB0 --chip esp32 --baud 115200 --no-stub \
     write_flash --flash_mode keep --flash_size keep 0x1000 \
     Inkplate-firmware.bin

.. _1043168: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043168

Then the libraries can be copied to the board from the local copy::

  $ mpremote fs mkdir lib
  $ mpremote fs cp <board>/package.json :lib/
  $ mpremote fs cp <board>/<board>/*.py :lib/
  $ mpremote fs cp Dependencies/*.py :lib/

See also
========

* `Documentation for micropython on the ESP32
  <https://docs.micropython.org/en/latest/esp32/quickref.html>`_
* `Inkplate micropython library
  <https://github.com/SolderedElectronics/Inkplate-micropython>`_
* `Issue related to the original Inkplate 6
  <https://github.com/SolderedElectronics/Inkplate-micropython/issues/47>`_

..
   vim: set filetype=rst: