FastLED 3.10.8
Loading...
Searching...
No Matches

◆ analogRead()

u16 fl::analogRead ( int pin)

Read analog value from pin.

Parameters
pinPin number (platform-specific numbering)
Returns
Analog value (0-1023 for 10-bit ADC, 0-4095 for 12-bit ADC)

Definition at line 17 of file analog_read.cpp.hpp.

17 {
18 return platforms::analogRead(pin);
19}

References FL_NO_EXCEPT.

Referenced by fl::PotentiometerLowLevel::read().

+ Here is the caller graph for this function: