Drop obsolete MicroPython binding compat constructors.
This commit is contained in:
parent
7db6d62515
commit
83b6331094
|
@ -83,9 +83,6 @@ namespace pimoroni {
|
|||
|
||||
AS7262(I2C *i2c, uint interrupt = PIN_UNUSED) : i2c(i2c), interrupt(interrupt) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
AS7262(uint sda, uint scl, uint interrupt = PIN_UNUSED) : AS7262(new I2C(), interrupt) {}
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
|
|
|
@ -164,10 +164,6 @@ namespace pimoroni {
|
|||
IOExpander(uint8_t address, uint32_t timeout = 1, bool debug = false) :
|
||||
IOExpander(new I2C(), address, PIN_UNUSED, timeout, debug) {};
|
||||
|
||||
IOExpander(uint8_t address, uint sda, uint scl, uint interrupt = PIN_UNUSED, uint32_t timeout = 1, bool debug = false) :
|
||||
IOExpander(new I2C(sda, scl), address, interrupt, timeout, debug) {};
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
IOExpander(I2C *i2c, uint8_t address=DEFAULT_I2C_ADDRESS, uint interrupt = PIN_UNUSED, uint32_t timeout = 1, bool debug = false);
|
||||
|
||||
|
||||
|
|
|
@ -148,8 +148,6 @@ namespace pimoroni {
|
|||
|
||||
LTR559(I2C *i2c, uint interrupt = PIN_UNUSED) : i2c(i2c), interrupt(interrupt) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
LTR559(uint sda, uint scl, uint interrupt = PIN_UNUSED) : LTR559(new I2C(), interrupt) {}
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
|
|
|
@ -116,9 +116,6 @@ namespace pimoroni {
|
|||
|
||||
MSA301(I2C *i2c, uint interrupt = PIN_UNUSED) : i2c(i2c), interrupt(interrupt) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
MSA301(i2c_inst_t *i2c_inst, uint sda, uint scl, uint interrupt = PIN_UNUSED) : MSA301(new I2C(sda, scl), interrupt) {}
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
|
|
|
@ -224,9 +224,6 @@ namespace pimoroni {
|
|||
RV3028(I2C *i2c, uint interrupt = DEFAULT_INT_PIN) :
|
||||
i2c(i2c), interrupt(interrupt) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
RV3028(i2c_inst_t *i2c, uint sda, uint scl, uint interrupt = DEFAULT_INT_PIN) : RV3028(new I2C(sda, scl), interrupt) {}
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
|
|
|
@ -50,9 +50,6 @@ namespace pimoroni {
|
|||
|
||||
SGP30(I2C *i2c) : i2c(i2c) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
SGP30(i2c_inst_t *i2c_inst, uint sda, uint scl) : i2c(new I2C(sda, scl)) { }
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
//--------------------------------------------------
|
||||
|
|
|
@ -52,9 +52,6 @@ namespace pimoroni {
|
|||
|
||||
Trackball(I2C *i2c, uint8_t address = DEFAULT_I2C_ADDRESS, uint interrupt = PIN_UNUSED, uint32_t timeout = DEFAULT_TIMEOUT) : i2c(i2c), address(address), interrupt(interrupt) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
Trackball(i2c_inst_t *i2c_inst, uint8_t address, uint sda, uint scl, uint interrupt = PIN_UNUSED, uint32_t timeout = DEFAULT_TIMEOUT) : Trackball(new I2C(sda, scl), address, interrupt) {}
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
//--------------------------------------------------
|
||||
|
|
|
@ -58,9 +58,6 @@ namespace pimoroni {
|
|||
BreakoutEncoder(I2C *i2c, uint8_t address = DEFAULT_I2C_ADDRESS, uint interrupt = PIN_UNUSED, uint32_t timeout = DEFAULT_TIMEOUT, bool debug = false) :
|
||||
ioe(i2c, address, interrupt, timeout, debug) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
BreakoutEncoder(uint8_t address, uint sda, uint scl, uint interrupt = PIN_UNUSED, uint32_t timeout = DEFAULT_TIMEOUT) : BreakoutEncoder(new I2C(sda, scl), address, interrupt, timeout) {};
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
|
|
|
@ -57,9 +57,6 @@ namespace pimoroni {
|
|||
BreakoutMICS6814(I2C *i2c, uint8_t address = DEFAULT_I2C_ADDRESS, uint interrupt = PIN_UNUSED, uint32_t timeout = DEFAULT_TIMEOUT, bool debug = false) :
|
||||
ioe(i2c, address, interrupt, timeout, debug) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
BreakoutMICS6814(uint8_t address, uint sda, uint scl, uint interrupt = PIN_UNUSED, uint32_t timeout = DEFAULT_TIMEOUT) : BreakoutMICS6814(new I2C(sda, scl), address, interrupt, timeout) {};
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
//--------------------------------------------------
|
||||
|
|
|
@ -55,9 +55,6 @@ namespace pimoroni {
|
|||
BreakoutPotentiometer(I2C *i2c, uint8_t address = DEFAULT_I2C_ADDRESS, uint interrupt = PIN_UNUSED, uint32_t timeout = DEFAULT_TIMEOUT, bool debug = false) :
|
||||
ioe(i2c, address, interrupt, timeout, debug) {}
|
||||
|
||||
// TODO remove MicroPython-binding compatibility constructors
|
||||
BreakoutPotentiometer(uint8_t address, uint sda, uint scl, uint interrupt = PIN_UNUSED, uint32_t timeout = DEFAULT_TIMEOUT) : BreakoutPotentiometer(new I2C(sda, scl), address, interrupt, timeout) {};
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// Methods
|
||||
|
|
Loading…
Reference in New Issue