📅  最后修改于: 2022-03-11 14:57:25.880000             🧑  作者: Mango
int input = Serial.parseInt(); // keep other operations outside the constrain function
int constrainedInput = constrain(input, minimumValue, maximumValue);