-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for IPS display types using the 'begin' function gfx.begin(IPS_DISPLAY);
- Loading branch information
4D Systems
committed
Jan 28, 2021
1 parent
43b48e8
commit d0990b5
Showing
7 changed files
with
97 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=GFX4d | ||
version=1.0.1 | ||
version=1.0.2 | ||
author=4D Systems Pty Ltd | ||
maintainer=4D Systems Pty Ltd <[email protected]> | ||
sentence=Graphics Library for the gen4-IoD by 4D Systems | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/****************************************** | ||
* IoD Template * | ||
* A blank template for any IoD sketch * | ||
* with common commands to quickly start * | ||
* a sketch that initializes the screen * | ||
* * | ||
******************************************/ | ||
|
||
|
||
#include "ESP8266WiFi.h" | ||
#include "GFX4d.h" | ||
|
||
GFX4d gfx = GFX4d(); | ||
|
||
void setup() { | ||
|
||
gfx.begin(IPS_DISPLAY); | ||
gfx.Cls(); | ||
gfx.ScrollEnable(true); | ||
gfx.BacklightOn(true); | ||
gfx.Orientation(PORTRAIT); | ||
gfx.SmoothScrollSpeed(5); | ||
gfx.TextColor(WHITE); gfx.Font(2); gfx.TextSize(1); | ||
|
||
} | ||
|
||
void loop() { | ||
|
||
yield(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters