Skip to content

Commit 5bb86a6

Browse files
committed
Update InternalExpander.ino
1 parent 7c6ba67 commit 5bb86a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/Inkplate5V2/Advanced/IO/InternalExpander/InternalExpander.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,25 +57,25 @@
5757
#define LED_PIN 15
5858

5959
// Create an instance of the Inkplate object
60-
Inkplate display;
60+
Inkplate inkplate(INKPLATE_1BIT);
6161

6262
void setup()
6363
{
6464
// Init Inkplate library and LVGL in PARTIAL render mode
65-
display.begin(LV_DISP_RENDER_MODE_PARTIAL);
65+
inkplate.begin(LV_DISP_RENDER_MODE_PARTIAL);
6666

6767
// Set P1-7 as output on the *internal* IO expander.
6868
// Only pins 9–15 are safe to use on the internal expander.
69-
display.internalIO.pinMode(LED_PIN, OUTPUT);
69+
inkplate.internalIO.pinMode(LED_PIN, OUTPUT);
7070
}
7171

7272
void loop()
7373
{
7474
// Set output to LOW (LED does not light up)
75-
display.internalIO.digitalWrite(LED_PIN, LOW);
75+
inkplate.internalIO.digitalWrite(LED_PIN, LOW);
7676
delay(1000); // Wait for one second
7777

7878
// Set output to HIGH (LED lights up)
79-
display.internalIO.digitalWrite(LED_PIN, HIGH);
79+
inkplate.internalIO.digitalWrite(LED_PIN, HIGH);
8080
delay(1000); // Wait for one second
8181
}

0 commit comments

Comments
 (0)