It's been a few years since i played with an Arduino. My last venture was with a Mega but i can't seem to get them anymore. So, i now have the Metro M4 Express.
It looks like there is no more software serial for this board. What is the proper way to do this now? I saw something about a hardware serial but i wasn't clear if or how to use it.
I am trying to use a Nextion display and connecting to my PC via "OpenHardwareMonitor".
any advice is appreciated.
Thank you
Metro M4 Express and SoftwareSerial
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15660
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Metro M4 Express and SoftwareSerial
Rx/Tx is available via a hardware UART on the new boards since they don't use them to communicate with an external (usually a 32u4) chip to manage USB. Use Serial1 assuming you are using C++/Arduino.
Dave
Dave
- muttstang
- Posts: 86
- Joined: Mon May 10, 2021 3:24 pm
Re: Metro M4 Express and SoftwareSerial
Does this work on a Metro ESP32-S2 as well?
- dastels
- Posts: 15660
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Metro M4 Express and SoftwareSerial
Yes, the ESP32-S2 has native USB and has great UART, I2C, SPI, etc support.
Dave
See the guide at https://learn.adafruit.com/adafruit-metro-esp32-s2.ESP32 chips allow for 'multiplexing' of almost all signals so it isn't like some pins can do PWM and others can. You can connect any of the available PWM channels, I2S channels, UART, I2C or SPI ports to any pin.
Dave
Please be positive and constructive with your questions and comments.