File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
examples/Inkplate5V2/Advanced/IO/InternalExpander Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 5757#define LED_PIN 15
5858
5959// Create an instance of the Inkplate object
60- Inkplate display ;
60+ Inkplate inkplate (INKPLATE_1BIT) ;
6161
6262void 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
7272void 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}
You can’t perform that action at this time.
0 commit comments