FastLED 3.10.8
Loading...
Searching...
No Matches
analog_read.cpp.hpp File Reference

Detailed Description

Non-inline fl::analogRead wrapper, in its own unity object so the platform ADC driver is linked only when a sketch reads an analog pin (FastLED #4796).

See fl/system/pin.cpp.hpp for the wrapper pattern.

Definition in file analog_read.cpp.hpp.

#include "fl/system/analog/analog_read.h"
#include "platforms/pin.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for analog_read.cpp.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

u16 fl::analogRead (int pin) FL_NO_EXCEPT
 Read analog value from pin.