Skip to content

Commit 6ac59ce

Browse files
committed
Picture from RAM examples fixed
1 parent 2c76c89 commit 6ac59ce

File tree

12 files changed

+4771
-52000
lines changed

12 files changed

+4771
-52000
lines changed

examples/Inkplate6/Advanced_Inkplate_Features/Inkplate_Picture_From_RAM/Inkplate_Picture_From_RAM.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void setup()
3535
display.clearDisplay(); // Clear frame buffer of display
3636

3737
display.drawImage(
38-
picture1, 0, 0, 800,
38+
pic1, 0, 0, 800,
3939
600); // Display picture from RAM at location X=0, Y=0. It is also needed to specify width and height
4040
// of picture (800x600 in this case). drawImage function is overloaded function and this parameters
4141
// specify to use function which draws image on screen from internal RAM and this function calls other
@@ -48,7 +48,7 @@ void setup()
4848
display.clearDisplay(); // Clear frame buffer of display
4949

5050
display.drawBitmap3Bit(
51-
0, 0, picture2, 800,
51+
0, 0, pic2, 800,
5252
600); // This function is called automatically from drawImage if first parameter is
5353
// pointer to buffer in which picture is stored and Inkplate is in 3-bit mode.
5454
// In this example we are using this function only to show it's functionality
@@ -62,8 +62,8 @@ void setup()
6262
display.clearDisplay(); // Clear frame buffer of display
6363

6464
display.drawBitmap3Bit(
65-
0, 43, picture3, 800,
66-
600); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 1100x825 pixels
65+
0, 43, pic3, 800,
66+
600); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 800x600 pixels
6767

6868
display.display(); // Refresh the screen with new picture
6969
}

examples/Inkplate6/Advanced_Inkplate_Features/Inkplate_Picture_From_RAM/picture1.h

Lines changed: 601 additions & 828 deletions
Large diffs are not rendered by default.

examples/Inkplate6/Advanced_Inkplate_Features/Inkplate_Picture_From_RAM/picture2.h

Lines changed: 602 additions & 829 deletions
Large diffs are not rendered by default.

examples/Inkplate6/Advanced_Inkplate_Features/Inkplate_Picture_From_RAM/picture3.h

Lines changed: 603 additions & 23886 deletions
Large diffs are not rendered by default.

examples/Inkplate6COLOR/Advanced_Inkplate_Features/Inkplate_Low_Power/picture3.h

Lines changed: 450 additions & 452 deletions
Large diffs are not rendered by default.

examples/Inkplate6COLOR/Advanced_Inkplate_Features/Inkplate_Picture_From_RAM/Inkplate_Picture_From_RAM.ino

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void setup()
3737
display.drawImage(
3838
picture1, 0, 0, 600,
3939
448); // Display picture from RAM at location X=0, Y=0. It is also needed to specify width and height
40-
// of picture (800x600 in this case). drawImage function is overloaded function and this parameters
40+
// of picture (600x448 in this case). drawImage function is overloaded function and this parameters
4141
// specify to use function which draws image on screen from internal RAM and this function calls other
4242
// functions (drawBitmap or drawBitmap3Bit depends in which mode is Inkplate (INKPLATE_3BIT or INKPLATE_1BIT))
4343
// which draws content from buffer in RAM.
@@ -58,13 +58,11 @@ void setup()
5858
display.display(); // Refresh the screen with new picture
5959

6060
delay(10000); // Wait a bit
61-
62-
display.clearDisplay(); // Clear frame buffer of display
63-
64-
display.drawBitmap3Bit(
65-
0, 43, picture3, 600,
66-
448); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 1100x825 pixels
6761

62+
display.drawBitmap3Bit(
63+
0, 0, picture3, 600,
64+
448);
65+
6866
display.display(); // Refresh the screen with new picture
6967
}
7068

examples/Inkplate6COLOR/Advanced_Inkplate_Features/Inkplate_Picture_From_RAM/picture3.h

Lines changed: 450 additions & 452 deletions
Large diffs are not rendered by default.

examples/Inkplate6PLUS/Advanced_Inkplate_Features/Inkplate_Low_Power/Inkplate_Low_Power.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void setup()
4848
display.clearDisplay(); // Clear frame buffer of display
4949
display.drawImage(
5050
pictures[slide], 0, 43, 1024,
51-
682); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 800x600 pixels
51+
682); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 1024x682 pixels
5252
display.display(); // Refresh the screen with new picture
5353
slide++; // Update counter for pictures. With this variable, we choose what picture is going to be displayed on
5454
// screen

examples/Inkplate6PLUS/Advanced_Inkplate_Features/Inkplate_Picture_From_RAM/Inkplate_Picture_From_RAM.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ void setup()
4040

4141
display.drawImage(
4242
picture1, 0, 43, 1024,
43-
682); // Display picture from RAM at location X=50, Y=0. It is also needed to specify width and height
44-
// of picture (1100x825 in this case). drawImage function iis overloaded function and this parameters
43+
682); // Display picture from RAM at location X=0, Y=43. It is also needed to specify width and height
44+
// of picture (1024x682 in this case). drawImage function iis overloaded function and this parameters
4545
// specify to use function which draws image on screen from internal RAM and this function calls other
4646
// functions (drawBitmap or drawBitmap3Bit depends in which mode is Inkplate (INKPLATE_3BIT or INKPLATE_1BIT))
4747
// which draws content from buffer in RAM.
@@ -67,7 +67,7 @@ void setup()
6767

6868
display.drawBitmap3Bit(
6969
0, 43, picture3, 1024,
70-
682); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 1100x825 pixels
70+
682); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 1024x682 pixels
7171

7272
display.display(); // Refresh the screen with new picture
7373
}

0 commit comments

Comments
 (0)