Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions source/micropython.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ Inkplate MicroPython
drawBitmap(x, y, b, w, h)

* **Arguments and return value**:
| **self** - font dictionary
| **self** - Instance
| **x** - Bitmap x coordinate.
| **y** - Bitmap y coordinate.
| **b** - Bytearray to draw from.
Expand Down Expand Up @@ -1700,15 +1700,13 @@ Inkplate MicroPython

.. code-block:: python

drawBitmap(x, y, path, invert=False)
drawImageFile(x, y, path, invert=False)

* **Arguments and return value**:
| **self** - font dictionary
| **self** - Instance
| **x** - Bitmap x coordinate.
| **y** - Bitmap y coordinate.
| **path** - File path e.g. "sd/file.bmp"
| **w** - Bitmap width.
| **h** - Bitmap height.
| **invert** - Inverts color.

| Returns nothing.
Expand All @@ -1719,7 +1717,7 @@ Inkplate MicroPython
* **Example**:
.. code-block:: python

display.drawBitmap(100, 250, "sd/file.bmp", 576, 100)
display.drawImageFile(100, 250, "sd/file.bmp")

* **Result**:
| Here is what the code above produces:
Expand Down