Skip to content

Commit 01552e7

Browse files
committed
Fixed some typos for Inkplate 5
1 parent 12c3747 commit 01552e7

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

examples/Inkplate5/Advanced/Communications/Inkplate5_EasyC/Inkplate5_EasyC.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void loop()
6363
display.setCursor(350, 40);
6464
display.print(bme680.readTemperature());
6565
display.print(" *C");
66-
display.drawImage(temperature_icon, 150, 0, temperature_icon_w, temperature_icon_h,
66+
display.drawImage(temperature_icon, 158, 8, temperature_icon_w, temperature_icon_h,
6767
BLACK); // Arguments are: array variable name, start X, start Y, size X, size Y, color
6868

6969
// Display humidity icon and measured value

examples/Inkplate5/Advanced/DeepSleep/Inkplate5_Partial_Update_With_Deep_Sleep/Inkplate5_Partial_Update_With_Deep_Sleep.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
In this example we will show how to use partial update of epaper screen with deep sleep functionality of ESP32.
99
This example is not same as Inkplate-basic_partial_update! Do not use Inkplate5_Partial_Update with deep sleep,
10-
IT WON'T WORK! Reason why you have to use this method with deep sleep is down how partail update works. It saves
10+
IT WON'T WORK! Reason why you have to use this method with deep sleep is down how partial update works. It saves
1111
content from screen in RAM. By calling partialUpdate() function, code finds difference between what is currently on
1212
screen and what will be written and sends only that. When deep sleep is used, all content form the RAM has been
1313
deleted, so ESP32 doesn't know what is currently on the screen, so you have to "rewrite" what is currently on the
@@ -74,8 +74,10 @@ void loop()
7474

7575
void createScreen()
7676
{
77-
display.setCursor(200, 250); // Set text cursor @ X = 200, Y = 250
7877
display.setTextSize(3); // Set font to be scaled up three times
78+
display.setCursor(35, 100);
79+
display.print("Inkplate 7 partial update with deep sleep example");
80+
display.setCursor(200, 250); // Set text cursor @ X = 200, Y = 250
7981
display.print("First variable:"); // Write first variable to buffer
8082
display.print(counter, DEC);
8183
display.setCursor(200, 290); // Set text cursor @ X = 200, Y = 290

examples/Inkplate5/Advanced/WEB_WiFi/Inkplate5_HTTP_Request/Inkplate5_HTTP_Request.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void setup()
7575
display.print('.');
7676
display.partialUpdate();
7777
}
78-
display.print("connected"); // If it's connected, notify user
78+
display.print("Connected!"); // If it's connected, notify user
7979
display.partialUpdate();
8080

8181
HTTPClient http;

examples/Inkplate5/Projects/Inkplate5_Daily_Weather_Station/Inkplate5_Daily_Weather_Station.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ char apiKey[] = "";
6363
// Including icons generated by the py file
6464
#include "icons.h"
6565

66-
// Including icons generated by the py file
67-
#include "icons.h"
68-
6966
// Delay between API calls, about 1000 per month, which is the free tier limit
7067
#define DELAY_MS 267800L
7168

examples/Inkplate5/Projects/Inkplate5_Image_Frame_From_SD/Inkplate5_Image_Frame_From_SD.ino

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
Don't have "Soldered Inkplate5" option? Follow our tutorial and add it:
66
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
77
8-
You can open .bmp, .jpeg, or .png files that have a color depth of 1-bit (BW bitmap), 4-bit, 8-bit and
8+
You can view most .bmp, .jpeg, or .png files that have a color depth of 1-bit (BW bitmap), 4-bit, 8-bit and
99
24 bit, but there are some limitations of the library. It will skip images that can't be drawn.
10+
If your image can't be drawn, open it in an image editing program and save as new format.
11+
1012
Make sure that the image has a resolution smaller than 960x540 or otherwise it won't fit on the screen.
1113
Format your SD card in standard FAT file format.
1214
@@ -83,8 +85,8 @@ void loop()
8385
// Save the index of the last opened file
8486
lastImageIndex = file.dirIndex();
8587

86-
// Skip hidden files and subdirectories
87-
skipHiden();
88+
// Skip hidden files and subdirectories.
89+
skipHidden();
8890

8991
// Get name of the pucture, create path and draw image on the screen
9092
if (!displayImage())
@@ -202,7 +204,7 @@ void openLastFile()
202204
}
203205

204206
/**
205-
* @brief Get name of the pucture, create path and draw image on the screen.
207+
* @brief Get name of the picture, create path and draw image on the screen.
206208
*
207209
* @return 0 if there is an error, 1 if the image is drawn.
208210
*/
@@ -213,7 +215,7 @@ bool displayImage()
213215
char pictureName[maxCharacters];
214216
file.getName(pictureName, maxCharacters);
215217

216-
// Cpoy of the folder path just for creating path for the image
218+
// Copy of the folder path just for creating path for the image
217219
char path[maxCharacters];
218220
strcpy(path, folderPath);
219221

@@ -239,7 +241,7 @@ bool displayImage()
239241
/**
240242
* @brief Skip hidden files and subdirectories.
241243
*/
242-
void skipHiden()
244+
void skipHidden()
243245
{
244246
while (file.isHidden() || file.isSubDir())
245247
{

0 commit comments

Comments
 (0)