Add Library
This commit is contained in:
parent
e365b9dbd9
commit
3c47103b39
318 changed files with 56465 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
//This example shows a simple "Hello world!" on a VGA screen.
|
||||
//You need to connect a VGA screen cable to the pins specified below.
|
||||
//cc by-sa 4.0 license
|
||||
//bitluni
|
||||
|
||||
#include <ESP32Lib.h>
|
||||
#include <Ressources/Font6x8.h>
|
||||
|
||||
//pin configuration
|
||||
const int redPin = 14;
|
||||
const int greenPin = 19;
|
||||
const int bluePin = 27;
|
||||
const int hsyncPin = 32;
|
||||
const int vsyncPin = 33;
|
||||
|
||||
//VGA Device
|
||||
VGA3Bit vga;
|
||||
|
||||
void setup()
|
||||
{
|
||||
//initializing vga at the specified pins
|
||||
vga.init(vga.MODE320x240, redPin, greenPin, bluePin, hsyncPin, vsyncPin);
|
||||
//selecting the font
|
||||
vga.setFont(Font6x8);
|
||||
//displaying the text
|
||||
vga.println("Hello World!");
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue