Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    The problem is your janky serial reading method. You're assuming there's data to read when there isn't. Read this: majenko.co.uk/blog/reading-serial-arduino Commented Jan 12, 2021 at 15:00
  • I probably missed something but: why are you using SoftwareSerial on the pro micro at all? Commented Jan 12, 2021 at 15:29
  • @timemage Yes, you missed that. He explained why - he assumed pins 0/1 were taken with the USB, then found out otherwise, and now is attempting to use those with Serial instead of SoftwareSerial. Commented Jan 12, 2021 at 15:34
  • The Serial device is usually the USB serial connection, whether or not that is controlled by pins 0/1. For pins 0/1 with a native USB connection you need to use Serial1. I think. It's been a while since I used an Arduino with native USB... Commented Jan 12, 2021 at 15:35
  • I'm not confused about how Serial and Serial1 work on the 32u4 based Arduinos. I don't see any indication that anything other than SoftwareSerial is being used. Commented Jan 12, 2021 at 15:37