mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 00:36:36 +00:00
Update usermod_sn_photoresistor.h
Allow to configure the analog input pin for the Photoresistor.
This commit is contained in:
parent
25ade86994
commit
8a1df9afee
@ -3,7 +3,9 @@
|
|||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
|
|
||||||
//Pin defaults for QuinLed Dig-Uno (A0)
|
//Pin defaults for QuinLed Dig-Uno (A0)
|
||||||
|
#ifndef PHOTORESISTOR_PIN
|
||||||
#define PHOTORESISTOR_PIN A0
|
#define PHOTORESISTOR_PIN A0
|
||||||
|
#endif
|
||||||
|
|
||||||
// the frequency to check photoresistor, 10 seconds
|
// the frequency to check photoresistor, 10 seconds
|
||||||
#ifndef USERMOD_SN_PHOTORESISTOR_MEASUREMENT_INTERVAL
|
#ifndef USERMOD_SN_PHOTORESISTOR_MEASUREMENT_INTERVAL
|
||||||
@ -207,4 +209,4 @@ const char Usermod_SN_Photoresistor::_readInterval[] PROGMEM = "read-interval-s"
|
|||||||
const char Usermod_SN_Photoresistor::_referenceVoltage[] PROGMEM = "supplied-voltage";
|
const char Usermod_SN_Photoresistor::_referenceVoltage[] PROGMEM = "supplied-voltage";
|
||||||
const char Usermod_SN_Photoresistor::_resistorValue[] PROGMEM = "resistor-value";
|
const char Usermod_SN_Photoresistor::_resistorValue[] PROGMEM = "resistor-value";
|
||||||
const char Usermod_SN_Photoresistor::_adcPrecision[] PROGMEM = "adc-precision";
|
const char Usermod_SN_Photoresistor::_adcPrecision[] PROGMEM = "adc-precision";
|
||||||
const char Usermod_SN_Photoresistor::_offset[] PROGMEM = "offset";
|
const char Usermod_SN_Photoresistor::_offset[] PROGMEM = "offset";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user