File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 25
25
#define TwoWire_h
26
26
27
27
/*
28
- If you need multiple TwoWire instnaces for multiple I2C master interfaces,
28
+ If you need multiple TwoWire instances for multiple I2C master interfaces,
29
29
define TWOWIRE_MASTER_ONLY (and optionally NO_GLOBAL_TWOWIRE). Then, you can
30
30
freely instantiate the TwoWire class. If you do NOT define TWOWIRE_MASTER_ONLY,
31
- all TwoWire instances will share the same Master-or-Slave core TWI
32
- implementation -> any call to begin(...) will change pins used for all instances.
31
+ all the class called TwoWire will behave like singleton-like (existing behaviour)
32
+ and all instances will share the same Master-or-Slave core TWI implementation
33
+ -> any call to begin(...) will change pins used for all instances.
33
34
34
35
You can use different configuration in separate compilation units, e.g., use
35
36
TWOWIRE_MASTER_ONLY in most of the code, and don't use it only in the
You can’t perform that action at this time.
0 commit comments