arduino / arduino/ArduinoCore-mbed
Wire1 not working on Nano RP2040 Connect
- Dominant language
- C
- Stars
- 411
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
Compile error when trying to use Wire1.
Have tried modifying pins_arduino.h as follows:
modified to:
#define WIRE_HOWMANY (2)
added:
#define PIN_WIRE_SDA1 (2u)
#define PIN_WIRE_SCL1 (3u)
#define I2C_HW1 (i2c1)
#define I2C_SDA1 (digitalPinToPinName(PIN_WIRE_SDA1))
#define I2C_SCL1 (digitalPinToPinName(PIN_WIRE_SCL1))
Compiles ok using wifi access point example but USB locks out if Wire1.begin() called, and requires a double tap reset & upload blink to fix.
Is it not possible to used the second RP2040 harware I2C?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing pins_arduino.h and the WiFi access point example, then reproduce the compile result and the USB lockout when Wire1.begin() is called. Check whether the reported second I2C definitions are supported on the Nano RP2040 Connect; done means Wire1 can be used without requiring a double-tap reset and recovery upload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100