Skip to content

Support for ESP32 Nano boards #54

Open
@matthewmcneill

Description

@matthewmcneill

This is relatively simple, just need to add the correct architecture pins for the Hardware Serial1 to the architectures in RS432.h

I'm not sure you want the default TX pin to be 1 however, so you may need to change that too.

#elif defined(ARDUINO_ARCH_ESP32)
#define SERIAL_PORT_HARDWARE Serial1
#define RS485_DEFAULT_DE_PIN 8
#define RS485_DEFAULT_RE_PIN 7
#define RS485_DEFAULT_TX_PIN 2

Without this change the library complains about the SERIAL_PORT_HARDWARE macro not being defined upon compilation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions