Skip to content

Commit c6eb1fd

Browse files
committed
Fixed merging
2 parents 2b8d679 + 258ab80 commit c6eb1fd

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Touchpads/Inkplate_Touchpads.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
Don't have "Inkplate 10(ESP32)" option? Follow our tutorial and add it:
66
https://e-radionica.com/en/blog/add-inkplate-6-to-arduino-ide/
77
8-
This example will show you how you can use built-in touchpads (on PCB marked with numbers 1, 2 and 3).
8+
This example will show you how you can use the built-in touchpads (on PCB marked with numbers 1, 2 and 3).
99
These are basically touch sensitive switches. You can read state each of these with function readTouchpad()
1010
and the argument you need to pass to this function is PAD1 if you want to read the state of touchpad marked
1111
as "1" on PCB, PAD2 for second touchpad, PAD3 for third. You can also use numbers as arguments.
12-
For that you need to pass number 0 for touchpad that is marked as 1 on PCB, 1 for second touchpad and 2 for third.
13-
Function will return 1 if selected touchpad is pressed, zero if not.
12+
For that you need to pass number 0 for touchpad that is marked as 1 on the PCB, 1 for the second touchpad and 2 for the third.
13+
The function readTouchpad() will return 1 if selected touchpad is pressed, zero if not.
1414
15-
In this example, if you touch first pad, ti will decrese number showed on screen, if you touch thirs touch pad,
16-
it will increase the number, if you touch second touchpad, it will reset number to zero.
15+
In this example, if you touch the first pad, it will decrese number showed on screen, if you touch the third touch pad,
16+
it will increase the number, if you touch second touchpad, it will reset the number to zero.
1717
18-
NOTE: You can not use touch pads when enclosure is fitted on the Inkplate - they are not that sensitive!
18+
NOTE: You can not use touch pads when an enclosure is fitted on the Inkplate - they are not that sensitive!
1919
2020
Want to learn more about Inkplate? Visit www.inkplate.io
2121
Looking to get support? Write on our forums: http://forum.e-radionica.com/en/

src/boards/Inkplate5.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ bool Inkplate::begin(void)
3838
Wire.begin();
3939

4040
#ifndef ARDUINO_INKPLATECOLOR
41+
setDisplayMode(_mode);
4142
for (uint32_t i = 0; i < 256; ++i)
4243
pinLUT[i] = ((i & B00000011) << 4) | (((i & B00001100) >> 2) << 18) | (((i & B00010000) >> 4) << 23) |
4344
(((i & B11100000) >> 5) << 25);

src/boards/Inkplate6plus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,4 +582,4 @@ void Inkplate::einkOff()
582582
setPanelState(0);
583583
}
584584

585-
#endif
585+
#endif

0 commit comments

Comments
 (0)