Open technoblogy opened 4 years ago
As stated in the Maixduino documentation:
Only pins that are set to the input function by pinMode() can be read.
This is different from the standard Arduino behaviour. Why don't you incorporate a call to:
pinMode(pin, INPUT);
in the digitalRead() function? This would then make the behaviour consistent.
As stated in the Maixduino documentation:
This is different from the standard Arduino behaviour. Why don't you incorporate a call to:
pinMode(pin, INPUT);
in the digitalRead() function? This would then make the behaviour consistent.