mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
revert Wire::pins, mark as deprecated
This commit is contained in:
parent
38c74232c9
commit
f008806118
@ -52,8 +52,12 @@ TwoWire::TwoWire(){}
|
|||||||
// Public Methods //////////////////////////////////////////////////////////////
|
// Public Methods //////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void TwoWire::begin(int sda, int scl){
|
void TwoWire::begin(int sda, int scl){
|
||||||
twi_init(sda, scl);
|
twi_init(sda, scl);
|
||||||
flush();
|
flush();
|
||||||
|
}
|
||||||
|
|
||||||
|
void TwoWire::pins(int sda, int scl){
|
||||||
|
twi_init(sda, scl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TwoWire::begin(void){
|
void TwoWire::begin(void){
|
||||||
|
@ -51,6 +51,7 @@ class TwoWire : public Stream
|
|||||||
public:
|
public:
|
||||||
TwoWire();
|
TwoWire();
|
||||||
void begin(int sda, int scl);
|
void begin(int sda, int scl);
|
||||||
|
void pins(int sda, int scl) __attribute__((deprecated)); // use begin(sda, scl) in new code
|
||||||
void begin();
|
void begin();
|
||||||
void begin(uint8_t);
|
void begin(uint8_t);
|
||||||
void begin(int);
|
void begin(int);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user