Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specifying SCL and SDA. #13

Open
nopnop2002 opened this issue Feb 13, 2022 · 4 comments
Open

How to specifying SCL and SDA. #13

nopnop2002 opened this issue Feb 13, 2022 · 4 comments

Comments

@nopnop2002
Copy link
Owner

nopnop2002 commented Feb 13, 2022

  • 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);

@peter1a
Copy link

peter1a commented Feb 13, 2022

Wire.setPins(int sdaPin, int sclPin); not working on ESP32 (error while compiling: 'class TwoWire' has no member named 'setPins').

@nopnop2002
Copy link
Owner Author

nopnop2002 commented Feb 13, 2022

Wire.setPins(int sdaPin, int sclPin); not working on ESP32 (error while compiling: 'class TwoWire' has no member named 'setPins').

This is not a problem with this library.

Check here.
https://github.com/espressif/arduino-esp32/issues

@mysticrnd
Copy link

Is this library supports SC16IS762 ?

@nopnop2002
Copy link
Owner Author

@mysticrnd

The SC16IS762 differs from the SC16IS752 in that it supports SPI clock speeds up to 15 Mbit/s instead of the 4 Mbit/s supported by the SC16IS752, and in that it supports IrDA SIR up to 1.152 Mbit/s.

It probably works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants