You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Persist state in flash only if we have digital input in output or analog mode
535
541
if (persist) {
@@ -581,8 +587,8 @@ int PreferenceHandler::getGpioState(int pin) {
581
587
// every time we have a new value greater than TOUCH_VARIATION_ALLOWED, start a new timer. If the variation is steady during TOUCH_TIME_INTERVAL, we can say we have a touch event... fiou
Copy file name to clipboardExpand all lines: PreferenceHandler.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ typedef struct
53
53
{
54
54
uint8_t pin;
55
55
char label[MAX_LABEL_TEXT_SIZE];
56
-
int8_t mode; // 1 is INPUT, 2 is OUTPUT, 5 is INPUT_PULLUP, -1 is LEDCONTROL, -2 is I2C, -3 is analog read, -4 is Touch read,-100 is blocked (not available in the list of pins)
56
+
int8_t mode; // 1 is INPUT, 2 is OUTPUT, 5 is INPUT_PULLUP, -1 is LEDCONTROL, -2 is I2C, -3 is ADC (analog read), -4 is Touch read, -5 is DAC (digital to analog), -100 is blocked (not available in the list of pins)
0 commit comments