Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure backlight change in SimpleBacklight.ino is visible #32

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions examples/backlight/BacklightBlink/BacklightBlink.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* This example shows how to change the backlight intensity of the GIGA Display Shield.
*
* The backlight intensity is set by passing a number between 0 and 100 to the .set() method.
* Here we set the backlight to 0% and 100% intensity in a loop, changing the value every 1 second.
*
* Initial author: Martino Facchin @facchinm
* Modified by: Ali Jahangiri @aliphys
*/

#include <Arduino_GigaDisplay.h>

//Create backlight object
GigaDisplayBacklight backlight;

void setup() {
backlight.begin();
}

void loop() {
backlight.set(0); // backlight off - 0%
delay(1000);
backlight.set(100); // backlight on - 100%
delay(1000);
}
20 changes: 0 additions & 20 deletions examples/backlight/SimpleBacklight/SimpleBacklight.ino

This file was deleted.

Loading