Skip to content

Commit 496051d

Browse files
committed
Added some new and fixed some old inkplate4 examples
1 parent 10cf32d commit 496051d

File tree

125 files changed

+3652
-21417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+3652
-21417
lines changed

examples/Inkplate4/Advanced/Communication/Inkplate4_Second_SPI/Inkplate4_Second_SPI.ino

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,20 @@
2424
SCK - IO14
2525
SDA - IO15
2626
27-
IMPORTANT: you have to cut JP2 and connect the other 2 contacts in order to work!
27+
IMPORTANT: you have to cut JP6 and connect the other 2 contacts in order to work!
2828
2929
Want to learn more about Inkplate? Visit www.inkplate.io
3030
Looking to get support? Write on our forums: https://forum.soldered.com/
31-
6 April 2023 by Soldered Electronics.
31+
12 April 2023 by Soldered Electronics.
3232
*/
3333

34-
3534
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
3635
#ifndef ARDUINO_INKPLATE4
3736
#error "Wrong board selection for this example, please select Soldered Inkplate4 in the boards menu."
3837
#endif
3938

4039
// Include needed libraries
41-
//#include "Inkplate.h"
40+
#include "Inkplate.h"
4241
#include "MFRC522-SOLDERED.h"
4342
#include "SPI.h"
4443

@@ -50,12 +49,20 @@
5049
MFRC522 rfid(SS_PIN, RST_PIN);
5150

5251
// Create an object on Inkplate library and also set library into 1-bit mode (BW)
53-
//Inkplate display;
52+
Inkplate display;
5453

5554
void setup()
5655
{
5756
// Init Inkplate library (you should call this function ONLY ONCE)
58-
//display.begin();
57+
display.begin();
58+
59+
// Set bigger text and print messages on the screen
60+
display.setTextSize(3);
61+
display.drawTextWithShadow(0, 0, "Second SPI example", INKPLATE_BLACK, INKPLATE_RED);
62+
63+
display.setTextSize(2);
64+
display.println("\n\n\nOpen the Serial Monitor at 115200\nbaud rate to see what's happening");
65+
display.display();
5966

6067
// Init SPI bus
6168
SPI.begin(14, 12, 13, 15);

examples/Inkplate4/Projects/Inkplate4_Daily_Weather_Station/Fonts/Inter120pt7b.h

Lines changed: 0 additions & 15950 deletions
This file was deleted.

examples/Inkplate4/Projects/Inkplate4_Daily_Weather_Station/Fonts/Inter16pt7b.h

Lines changed: 0 additions & 385 deletions
This file was deleted.

examples/Inkplate4/Projects/Inkplate4_Daily_Weather_Station/Fonts/Inter20pt7b.h

Lines changed: 0 additions & 546 deletions
This file was deleted.

examples/Inkplate4/Projects/Inkplate4_Daily_Weather_Station/Fonts/Inter30pt7b.h

Lines changed: 1107 additions & 0 deletions
Large diffs are not rendered by default.

examples/Inkplate4/Projects/Inkplate4_Daily_Weather_Station/Fonts/Inter36pt7b.h

Lines changed: 0 additions & 1562 deletions
This file was deleted.

examples/Inkplate4/Projects/Inkplate4_Daily_Weather_Station/Fonts/Inter48pt7b.h

Lines changed: 0 additions & 2638 deletions
This file was deleted.

0 commit comments

Comments
 (0)