arduino / arduino/ArduinoCore-samd
How do I subclass TwoWire without creating the Wire instance(s)?
- Dominant language
- C
- Stars
- 502
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way to subclass TwoWire without creating the Wire instance(s)?
It seems that because `variant.h` and `WIRE_INTERFACES_COUNT` are both within `Wire.h`, it isn't possible to use the TwoWire class without the instances being created.
I am trying to subclass TwoWire and create instances of my class instead.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading Wire.h and variant.h, focusing on how WIRE_INTERFACES_COUNT and the Wire instances are declared. Trace how TwoWire is exposed and determine the intended separation between the class and its instances. Done means the issue has a documented, agreed approach for subclassing TwoWire without creating the default Wire instances.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100