forked from Makuna/NeoPixelBus
Fix API Change (#777)
Used to state just use 0x100, but this is incorrect on some platforms. Recommened now to just use SIG_GPIO_OUT_IDX.
This commit is contained in:
@@ -171,7 +171,7 @@ public:
|
||||
|
||||
i2sDeinit(_bus.I2sBusNumber);
|
||||
|
||||
gpio_matrix_out(_pin, 0x100, false, false);
|
||||
gpio_matrix_out(_pin, SIG_GPIO_OUT_IDX, false, false);
|
||||
pinMode(_pin, INPUT);
|
||||
|
||||
free(_data);
|
||||
|
@@ -453,7 +453,7 @@ public:
|
||||
}
|
||||
|
||||
// disconnect muxed pin
|
||||
gpio_matrix_out(pin, 0x100, false, false);
|
||||
gpio_matrix_out(pin, SIG_GPIO_OUT_IDX, false, false);
|
||||
pinMode(pin, INPUT);
|
||||
|
||||
_muxId = s_context.MuxMap.InvalidMuxId;
|
||||
|
@@ -556,7 +556,7 @@ public:
|
||||
|
||||
ESP_ERROR_CHECK(rmt_driver_uninstall(_channel.RmtChannelNumber));
|
||||
|
||||
gpio_matrix_out(_pin, 0x100, false, false);
|
||||
gpio_matrix_out(_pin, SIG_GPIO_OUT_IDX, false, false);
|
||||
pinMode(_pin, INPUT);
|
||||
|
||||
free(_dataEditing);
|
||||
|
Reference in New Issue
Block a user