File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,6 @@ void ws_pixels::deallocateStrand(int16_t strandIdx) {
69
69
// Fill with "off"
70
70
strands[strandIdx].neoPixelPtr ->clear ();
71
71
strands[strandIdx].neoPixelPtr ->show ();
72
- #ifdef ARDUINO_ARCH_ESP32
73
- // Clear the pin used for RMT
74
- strands[strandIdx].neoPixelPtr ->updateLength (0 );
75
- strands[strandIdx].neoPixelPtr ->show ();
76
- #endif
77
72
// Delete the NeoPixel object
78
73
delete strands[strandIdx].neoPixelPtr ;
79
74
} else if ((strands[strandIdx].dotStarPtr != nullptr )) {
Original file line number Diff line number Diff line change @@ -103,14 +103,10 @@ void initStatusLED() {
103
103
void releaseStatusLED () {
104
104
WS_DEBUG_PRINTLN (" Releasing status LED" );
105
105
#ifdef USE_STATUS_NEOPIXEL
106
- #ifdef ARDUINO_ARCH_ESP32
107
- // Release the rmtPin for use by other peripherals
108
- statusPixel->updateLength (0 );
109
- statusPixel->show ();
110
- #endif
111
- // Dealloc. NeoPixel object
106
+ // Deallocate Adafruit_NeoPixel object, set data pin back to INPUT,
107
+ // and unlock pixel for use by pixels component
112
108
delete statusPixel;
113
- WS.lockStatusNeoPixel = false ; // unlock
109
+ WS.lockStatusNeoPixel = false ;
114
110
#endif
115
111
116
112
#ifdef USE_STATUS_DOTSTAR
You can’t perform that action at this time.
0 commit comments