Skip to content

How to specifying SCL and SDA. #13

@nopnop2002

Description

@nopnop2002
  • arduino core for esp32:
    Wire.setPins(int sdaPin, int sclPin);
    i2cuart.begin(baudrate_A, baudrate_B);

  • arduino core for esp8266:
    Can not.

  • atmega:
    #define SDA_PORT PORTD
    #define SDA_PIN SDA
    #define SCL_PORT PORTD
    #define SCL_PIN SCL
    #include <SoftI2CMaster.h>
    #include <SoftWire.h>
    SoftWire Wire = SoftWire();
    i2cuart.begin(baudrate_A, baudrate_B);

  • Arduino core support for STM32 based boards:
    Wire.setSCL(SCL);
    Wire.setSDA(SDA);
    i2cuart.begin(baudrate_A, baudrate_B);

  • Arduino Core for Nordic Semiconductor nRF5 based boards:
    Wire.setPins(int sdaPin, int sclPin);
    i2cuart.begin(baudrate_A, baudrate_B);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions