smaffer / espvgax Goto Github PK
View Code? Open in Web Editor NEWESP8266 VGA Library for Arduino
ESP8266 VGA Library for Arduino
Is it possible to print cyrillic text?
Or any way to easily convert an image (containing necessary text) into a bitmap so it can be rendered on the screen?
Hi,
when I was testing your library on Atmega 328 (VGAX), everything was fine.
But testing it on ESP-07, not NodeMCU, i've changed pins from D7, D2 etc. to GPIO pins (just 13, 5 etc.)
Compilator was giving an error, "D13 is not defined"
I think you should make 2 versions of library, of define board type in vga.begin(board);
Non-advanced users won't know wheres problem.
Anyway, I'm writing an tutorial with using your library :)
Hi ,
implementing the following code the serial isn't working while removing ESPVGAX code lines anything ii's ok.
Any suggestion?
#include <SoftwareSerial.h>
#include <ESPVGAX.h>
#include <fonts/monodos12.h>
ESPVGAX vga;
String messageTemp ;
String messageRcv ;
char data = 0;
int VGAy=0;
int RcvIndex=0;
//static const int RXPin = D6, TXPin = D5;
static const int RXPin = D6, TXPin = D8;
SoftwareSerial Raspi(RXPin, TXPin);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
delay (30);
Raspi.begin(9600);
delay (30);
vga.begin();
vga.setBitmapFont((uint8_t*)img_monodos12_data, 12);
Serial.println("Hello !");
}
void loop() {
// put your main code here, to run repeatedly:
if(Raspi.available()>0)
{
data=Raspi.read();
if (data == '\n'){
messageTemp += data;
messageRcv = messageTemp;
Serial.println(messageRcv);
char charBuf[messageRcv.length()+1];
messageRcv.toCharArray(charBuf,messageRcv.length()+1);
vga.print (charBuf,0, 0, true, messageRcv.length()+1, ESPVGAX_OP_SET, false, 0,false);
messageTemp = "";
VGAy += 1;
}
else {
messageTemp += data;
}
}
//Serial.println(messageTemp);
}
Wow! Congratulations! This is a great project.
I just added a dummy 1st formal arg and it works fine.
Thanks
Doug
Hello!
I am trying to make a litle snake game with the library and I noticed that the draw_row() function can't draw short lines ( 15px for example) and because of that small rectangles behave strange. If I remove the following lines it works correctly:
while (x0%32) {
ESPVGAX::putpixel(x0, line, c, op);
x0++;
sw--;
}
Can you check it please and thanks for the library !
can im use this thing without resistor and why it need. im dont have resistor but im want try use this lib :(
This is not really an issue, just a successful test result! I'm including 2 links for each product, in case of link rot.
I've repurposed an EspUSB from https://atcnetz.de for use with EspVGAX, by soldering directly onto the module GPIOs, and programmed it using Arduino.app on a Mac. I installed the library using Tools > Manage Libraries..., and made some minor modifications to ~/Documents/Arduino/libraries/ESPVGAX/ESPVGAX.cpp and ESPVGAX.h to configure the GPIO pins, timer and colour settings.
First I tested the EspVGAX with this 7" screen, and it worked perfectly (once I figured out the timer and colour settings).
Screen link 1
Screen link 2
Then I used a T-shaped VGA to HDMI adaptor to connect to the same screen, and that also works.
Adaptor link 1
Adaptor link 2
Then I used the EspVGAX with the VGA to HDMI adaptor connected to an Elgato CamLink 4K HDMI capture device, viewing with OBS on a Mac.
Camlink link 1
Camlink link 2
Now I plan to develop the software side further, so that the ESP shares its own access point, and lets me paste a full page of text, e.g. the lyrics to a verse of a song in church, or a conference presentation slide. I'm also interested in trying to pre-render the slide as a 1BITIMAGE in JavaScript, to easily allow Unicode text.
Like the title says...
When using spiffs.open(...) the esp crashes.
I don't want to use eeprom, so if anyone has an idea, i would be glad
I find this lib more usefull than the x2 one due to the fact this is higher resolution and you can draw/write more on screen, with better quality text as well. The color of the text depend on what color you have wired to the resistor. But with all 3 conected it is a nice gray color. Is this OK to use for long term?
Arduino have a library for Monochrome display like OlED called U8G2. U8G2 have wide variety of fonts, can I use U8G2 Font with this library.
hello thanks for the lib
did you have take a look to make it work with an ESP32
I would like this to the full 640x480 VGA.
As far as I know, ESP8266 has enough RAM (80KiByte) and clock frequency (160MHz) to support this.
What changes would be required for this?
Hi,
I'm unable to create Arial 24 size fonts using the font tool. Can you provide a way to do so?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.