Posts made by ardisd
-
RE: Serial2 Don't compile
Just the standard serial2 sketch
#include <M5Stack.h>
HardwareSerial Serial2(2);
void setup() {
M5.begin();
Serial.begin(115200);
// Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
Serial2.begin(115200, SERIAL_8N1, 16, 17);
}void loop() {
if(Serial.available()) {
int ch = Serial.read();
Serial2.write(ch);
}if(Serial2.available()) {
int ch = Serial2.read();
Serial.write(ch);
}
} -
RE: Serial2 Don't compile
Enclosed screen shot as requested
I get the same error when compiling Serial2.ino and my own code
-
Serial2 Don't compile
I have recently changed to using https://dl.espressif.com/dl/package_esp32_index.json in the boards manager now any application using serial2 wont comple. I get an error Error compiling for board M5Stack-Core-ESP32.
Thanks
David Ardis
-
Powering M5Stack
I have just got an M5Stack and Proto. I can only get the module to work on battery power if the Proto is between the Main Module and Bottem is this normal.
David Ardis