@@ -46,53 +46,6 @@ void setup()
4646
4747}
4848
49- void loop ()
50- {
51- /*
52- Inkplate4TEMPERA_Partial_Upodate.ino example for Soldered Inkplate 4 TEMPERA
53- For this example you will need only a USB-C cable and Inkplate 4 TEMPERA.
54- Select "Soldered Inkplate 4 TEMPERA" from Tools -> Board menu.
55- Don't have "Soldered Inkplate 4 TEMPERA" option? Follow our tutorial and add it:
56- https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
57-
58- In this example we will show how to use partial update functionality of Inkplate 4TEMPERA e-paper display.
59- It will scroll text that is saved in char array
60- NOTE: Partial update is only available on 1 Bit mode (BW) and it is not recommended to use it on first refresh after
61- power up. It is recommended to do a full refresh every 5-10 partial refresh to maintain good picture quality.
62-
63- Want to learn more about Inkplate? Visit www.inkplate.io
64- Looking to get support? Write on our forums: https://forum.soldered.com/
65- 12 July 2023 by Soldered
66- */
67-
68- // Next 3 lines are a precaution, you can ignore those, and the example would also work without them
69- #if !defined(ARDUINO_INKPLATE6PLUS) && !defined(ARDUINO_INKPLATE6PLUSV2)
70- #error "Wrong board selection for this example, please select e-radionica Inkplate 6Plus or Soldered Inkplate 6Plus in the boards menu."
71- #endif
72-
73- #include " Inkplate.h" // Include Inkplate library to the sketch
74- Inkplate display (INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW)
75-
76- // Char array where you can store your text that will be scrolled.
77- const char text[] = " This is partial update on Inkplate 4TEMPERA e-paper display! :)" ;
78-
79- // This variable determines the horizontal position of the text,
80- // creating a scrolling effect as it decreases.
81- int offset = 600 ;
82-
83- int partialUpdates=9 ;
84-
85- void setup ()
86- {
87- display.begin (); // Init Inkplate library (you should call this function ONLY ONCE)
88- display.clearDisplay (); // Clear frame buffer of display
89- display.display (); // Put clear image on display
90- display.setTextColor (BLACK, WHITE); // Set text color to be black and background color to be white
91- display.setTextSize (3 ); // Set text to be 3 times bigger than classic 5x7 px text
92- display.setTextWrap (false ); // Disable text wraping
93- display.setFullUpdateThreshold (partialUpdates); // Set the number of partial updates before doing a full update
94- }
95-
9649void loop ()
9750{
9851 // BASIC USAGE
0 commit comments