forked from Makuna/NeoPixelBus
Reset Pin Matrix on destruction (#504)
This commit is contained in:
@@ -169,6 +169,7 @@ public:
|
||||
yield();
|
||||
}
|
||||
|
||||
gpio_matrix_out(_pin, 0x100, false, false);
|
||||
pinMode(_pin, INPUT);
|
||||
|
||||
free(_data);
|
||||
|
@@ -522,6 +522,9 @@ public:
|
||||
|
||||
ESP_ERROR_CHECK(rmt_driver_uninstall(_channel.RmtChannelNumber));
|
||||
|
||||
gpio_matrix_out(_pin, 0x100, false, false);
|
||||
pinMode(_pin, INPUT);
|
||||
|
||||
free(_dataEditing);
|
||||
free(_dataSending);
|
||||
}
|
||||
|
Reference in New Issue
Block a user