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

◆ read()

int fl::read ( )

Definition at line 148 of file io.cpp.

148 {
149#ifdef FASTLED_TESTING
150 // Check for injected handler first
151 if (get_read_handler()) {
152 return get_read_handler()();
153 }
154#endif
155
156#ifdef __EMSCRIPTEN__
157 return read_wasm();
158#elif defined(FASTLED_TESTING) || defined(__linux__) || defined(__APPLE__) || defined(_WIN32)
159 return read_native();
160#elif defined(ESP32) || defined(ESP8266)
161 return read_esp();
162#elif defined(__AVR__) && !defined(ARDUINO_ARCH_MEGAAVR)
163 return read_avr();
164#elif defined(__MKL26Z64__)
165 // Teensy LC uses special no-op functions to avoid _write linker issues
166 return read_teensy_lc();
167#elif defined(__IMXRT1062__) || defined(__MK66FX1M0__) || defined(__MK64FX512__) || defined(__MK20DX256__) || defined(__MK20DX128__)
168 // All other Teensy platforms use lightweight implementation
169 return read_teensy();
170#else
171 // Use generic Arduino input for all other platforms including:
172 // - STM32 (STM32F1, STM32F4, STM32H7, ARDUINO_GIGA)
173 // - NRF (NRF52, NRF52832, NRF52840, ARDUINO_NRF52_DK)
174 // - All other Arduino-compatible platforms
175 return read_arduino();
176#endif
177}

Referenced by fl::istream_real::get(), fl::istream_real::getline(), fl::ByteStream::readCRGB(), fl::FileHandle::readCRGB(), fl::PixelStream::readFrameAt(), and fl::istream_real::readLine().

+ Here is the caller graph for this function: