Metro M4 Express and SoftwareSerial

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
AROTTER2
 
Posts: 25
Joined: Thu Dec 29, 2016 1:03 am

Metro M4 Express and SoftwareSerial

Post by AROTTER2 »

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

User avatar
dastels
 
Posts: 15660
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 Express and SoftwareSerial

Post by dastels »

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

User avatar
muttstang
 
Posts: 86
Joined: Mon May 10, 2021 3:24 pm

Re: Metro M4 Express and SoftwareSerial

Post by muttstang »

Does this work on a Metro ESP32-S2 as well?

User avatar
dastels
 
Posts: 15660
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 Express and SoftwareSerial

Post by dastels »

Yes, the ESP32-S2 has native USB and has great UART, I2C, SPI, etc support.
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.
See the guide at https://learn.adafruit.com/adafruit-metro-esp32-s2.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”