MCPcopy Create free account
hub / github.com/FastLED/FastLED / disable

Method disable

src/platforms/esp/32/drivers/parlio/parlio_peripheral_esp.cpp.hpp:272–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272bool ParlioPeripheralESPImpl::disable() FL_NOEXCEPT {
273 if (mTxUnit == nullptr) {
274 FL_WARN("ParlioPeripheralESP: Cannot disable - not initialized");
275 return false;
276 }
277
278 // Delegate to ESP-IDF
279 esp_err_t err = parlio_tx_unit_disable(mTxUnit);
280 if (err != ESP_OK) {
281 FL_LOG_PARLIO("ParlioPeripheralESP: Failed to disable TX unit: " << err);
282 return false;
283 }
284
285 mEnabled = false;
286 return true;
287}
288
289bool ParlioPeripheralESPImpl::isInitialized() const FL_NOEXCEPT {
290 // Real hardware: initialized if TX unit handle is valid

Callers 4

~ParlioEngineMethod · 0.45
initializeSpiMethod · 0.45
beginTransmissionMethod · 0.45
pollMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected