Heltec wifi kit32, hardware serial
Posted: Wed Jan 30, 2019 7:12 am
dear sir, I tried to use UART#2 and relocate RX to pin 5 and TX to pin17. anyway the compiler shows error below.
Don't know what is wrong or what to include to code please help. thanks in advance.
board: heltec wifi kit32 (esp32 with OLED
)
best regards
Newprasertkitt
HardwareSerial mySerial2(2);
mySerial2.begin(9600,SERIAL_8N1,5,7);
sketch_Jan28_ESP32_fingerprintSS_01:10: error: 'mySerial2' does not name a type
mySerial2.begin(9600,SERIAL_8N1,5,7);
^
exit status 1
'mySerial2' does not name a type
Don't know what is wrong or what to include to code please help. thanks in advance.
board: heltec wifi kit32 (esp32 with OLED
)
best regards
Newprasertkitt
HardwareSerial mySerial2(2);
mySerial2.begin(9600,SERIAL_8N1,5,7);
sketch_Jan28_ESP32_fingerprintSS_01:10: error: 'mySerial2' does not name a type
mySerial2.begin(9600,SERIAL_8N1,5,7);
^
exit status 1
'mySerial2' does not name a type