FastLED 3.9.15
Loading...
Searching...
No Matches

◆ available()

int fl::available ( )

Definition at line 117 of file io.cpp.

117 {
118#ifdef FASTLED_TESTING
119 // Check for injected handler first
120 if (get_available_handler()) {
121 return get_available_handler()();
122 }
123#endif
124
125#ifdef __EMSCRIPTEN__
126 return available_wasm();
127#elif defined(FASTLED_TESTING) || defined(__linux__) || defined(__APPLE__) || defined(_WIN32)
128 return available_native();
129#elif defined(ESP32) || defined(ESP8266)
130 return available_esp();
131#elif defined(__AVR__) && !defined(ARDUINO_ARCH_MEGAAVR)
132 return available_avr();
133#elif defined(__MKL26Z64__)
134 // Teensy LC uses special no-op functions to avoid _write linker issues
135 return available_teensy_lc();
136#elif defined(__IMXRT1062__) || defined(__MK66FX1M0__) || defined(__MK64FX512__) || defined(__MK20DX256__) || defined(__MK20DX128__)
137 // All other Teensy platforms use lightweight implementation
138 return available_teensy();
139#else
140 // Use generic Arduino input for all other platforms including:
141 // - STM32 (STM32F1, STM32F4, STM32H7, ARDUINO_GIGA)
142 // - NRF (NRF52, NRF52832, NRF52840, ARDUINO_NRF52_DK)
143 // - All other Arduino-compatible platforms
144 return available_arduino();
145#endif
146}

Referenced by fl::istream_real::eof(), fl::istream_real::get(), fl::istream_real::getline(), fl::istream_real::operator>>(), fl::istream_real::peek(), fl::ByteStreamMemory::read(), fl::istream_real::readLine(), fl::istream_real::readToken(), and fl::istream_real::skipWhitespace().

+ Here is the caller graph for this function: