You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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);
}
}
The text was updated successfully, but these errors were encountered: