This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:practical:hardware:sut:esp32:emb6_1 [2024/04/04 06:41] – [Start] pczekalski | en:iot-open:practical:hardware:sut:esp32:emb6_1 [2024/04/05 09:24] (current) – [Steps] pczekalski | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| < | < | ||
| </ | </ | ||
| - | The corresponding | + | |
| + | ==== Steps ==== | ||
| + | Remember to include the source array in the code when drawing an image.\\ | ||
| + | The corresponding | ||
| <code c> | <code c> | ||
| // 'logo 60', 60x60px | // 'logo 60', 60x60px | ||
| Line 69: | Line 72: | ||
| }; | }; | ||
| - | // Array of all bitmaps for convenience. (Total bytes used to store images in PROGMEM = 496) | + | // Total bytes used to store images in PROGMEM = 496 |
| const int epd_bitmap_allArray_LEN = 1; | const int epd_bitmap_allArray_LEN = 1; | ||
| const unsigned char* epd_bitmap_allArray[1] = { | const unsigned char* epd_bitmap_allArray[1] = { | ||
| Line 75: | Line 78: | ||
| }; | }; | ||
| </ | </ | ||
| - | ==== Steps ==== | ||
| - | Remember to include the source array in the code if you plan to draw an image from the bitmap: | ||
| - | |||
| === Step 1 === | === Step 1 === | ||
| Include necessary libraries. | Include necessary libraries. | ||
| Line 88: | Line 88: | ||
| </ | </ | ||
| The code above also includes a font to draw text on the ePaper Display. There are many fonts one can use, and a non-exhaustive list is present below (files are located in the '' | The code above also includes a font to draw text on the ePaper Display. There are many fonts one can use, and a non-exhaustive list is present below (files are located in the '' | ||
| - | * '' | + | < |
| - | * '' | + | FreeMono12pt7b.h |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| + | | ||
| + | </ | ||
| === Step 2 === | === Step 2 === | ||
| Declare GPIOs and some configurations needed to handle the ePaper display properly: | Declare GPIOs and some configurations needed to handle the ePaper display properly: | ||