Defines for HWSERIAL1 pins are wrong [not really]!

Here we go again

PIN_WIRE_HWSERIAL1_TX 1
PIN_WIRE_HWSERIAL1_RX 0

If you look at the pinout diagram is it other way round @pert

Strange, on most all Arduinos the hardware serial port RX is on pin 0 and the TX on pin 1.

On UNO yes, but many boars have TX first. Let me just check in case it is D0 and D1 mixed up

Oh no! So defines are correct, it is the digital pins on Every that go like this 1, 0, 2, 3, 4....

facepalm

All the Nano form factor boards* have pins 0 and 1 out of order. Caught me too! Apparently the original Nano board design was by Gravitech LLC and not Arduino which I guess explains (or at least is the excuse) for the backwardsness. And Arduino just carried that forth in their designs.

  • Nano, Nano Every, Nano 33 IoT, Nano 33 BLE Sense, Nano RP2040 Connect.
2 Likes

Good to know, thanks