Changed how INPUT_PULLUP is done to be compatibile with ESP32
Bumped version to 2.0.6
This commit is contained in:
@@ -1530,9 +1530,7 @@ void NmraDcc::pin( uint8_t ExtIntNum, uint8_t ExtIntPinNum, uint8_t EnablePullup
|
||||
#else
|
||||
DccProcState.ExtIntMask = 1;
|
||||
#endif
|
||||
pinMode( ExtIntPinNum, INPUT );
|
||||
if( EnablePullup )
|
||||
digitalWrite(ExtIntPinNum, HIGH);
|
||||
pinMode( ExtIntPinNum, EnablePullup ? INPUT_PULLUP : INPUT );
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user