Skip to content

Commit

Permalink
Update arduino.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoric committed Aug 23, 2023
1 parent e129be7 commit 2cf9546
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions source/arduino.rst
Original file line number Diff line number Diff line change
Expand Up @@ -940,15 +940,35 @@ Inkplate::drawImage();
| Draws bmp, png and jpeg images.
| Automatically adjusts for current display mode.
|
| On Inkplate 6COLOR, dither will use all of the 7 colors to reproduce wanted color.
| If you want to change the colors palette in which the image is dithered, check the file ``/src/include/ImageDitherColor.cpp`` in your library. It has a ``palette[]`` array where you can modify the color values in hex for a different look to the dithered image.
| On Inkplate 6COLOR, dither will use all of the 7 colors.
| The default color values are:
|
| +-------+--------+
| | Color | Value |
| +=======+========+
| | Black | 0x000000 |
| +-------+--------+
| | White | 0xFFFFFF |
| +-------+--------+
| | Green | 0x00FF00 |
| +-------+--------+
| | Blue | 0x0000FF |
| +-------+--------+
| | Red | 0xFF0000 |
| +-------+--------+
| | Yellow| 0xFFFF00 |
| +-------+--------+
| | Orange| 0xFF8000 |
| +-------+--------+
|
| If you want to change the color palette in which the image is dithered, check the file ``/src/include/ImageDitherColor.cpp`` in your library. It has a ``palette[]`` array where you can modify the color values in hex for a different look to the dithered image.
| The order of the colors is: [Black, White, Green, Blue, Red, Yellow, Orange]ˇ
|
| There is online Image converter for the Inkplate which have a presets for easier converting images for different Inkplates
| here: hhttps://solderedelectronics.github.io/Inkplate-image-converter/
| here: https://solderedelectronics.github.io/Inkplate-image-converter/
|
| On Inkplate 2 if you use online image converter, include picture in header file and it will draw it in tri-color mode.

Inkplate::drawBitmapFromSD();
#############################

Expand Down

0 comments on commit 2cf9546

Please sign in to comment.