Skip to content

ATMEGA4809 (Arduino Nano "Every" board) should use Serial1 not Serial #300

Open
@warmans

Description

@warmans

Context

Please answer a few questions to help us understand your problem better and guide you to a solution:

  • What board are you using ?
    • Arduino Nano Every Board (ATMEGA4809)
  • What version of the Arduino IDE are you using ?
    • 2.0
  • How are you using MIDI ?
    • Hardware Serial (DIN plugs)
    • USB
    • Other (please specify)
  • Is your problem related to:
    • MIDI Input (reading messages from other devices)
    • MIDI Output (sending messages to other devices)
  • How comfortable are you with code ?
    • Complete beginner
    • I've done basic projects
    • I know my way around C/C++
    • Advanced / professional

Describe your project and what you expect to happen:

I was using an older third party Arduino Nano for development and at the end swapped in a newer ATMEGA4809 board (https://docs.arduino.cc/hardware/nano-every). After switching I wasn't getting any output. Turns out the newer Nano boards use Serial1 by default. I was able to fix this using MIDI_CREATE_INSTANCE instead of MIDI_CREATE_DEFAULT_INSTANCE but I think the library does switch between Serial and Serial1 automatically for other boards.

Not really a bug, but I guess the library should take this new Nano Every board into account with CREATE_DEFAULT_INSTANCE

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions