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

espvgax2 library does not working together with softwareserial.h library, anytime i wish to read anothe nodemcu data via serial the display does not work. #7

Open
kudarukuni opened this issue Apr 30, 2024 · 0 comments

Comments

@kudarukuni
Copy link

here is the code im using.

#include <ESPVGAX2.h>
#include <fonts2/monodos8.h>
#include <fonts2/monaco9.h>
#include <fonts2/mfont6.h>

ESPVGAX2 vga;

uint8_t borderColor = 0xf;

void setup() {
Serial.begin(115200);
vga.begin();
vga.setBitmapFont((uint8_t*)img2_monodos8_data, 8);
vga.drawLine(0, 0, displayWidth - 1, 0, borderColor);
vga.drawLine(0, displayHeight - 1, displayWidth - 1, displayHeight - 1, borderColor);
vga.print_P(str0, 2, 2, 0x1, true);
vga.print_P(" COLUMN1", col1, row2, 0x4, true);
vga.print_P(" COLUMN2", col2, row2, 0x4, true);
vga.print_P(" COLUMN3", col3, row2, 0x4, true);
vga.print_P(str1, 1, row7, 0x4, true);
}

void loop() {
if (Serial.available()) {
String msg = Serial.readStringUntil('\r');
Serial.println("Resend! " + msg);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant