Posts by TiadoDev • 33 points
2 posts
-
-1
votes2
answers72
viewsQ: Why divide the potentiometer value by 4?
int ledPin = 13; // pino do led int analogPin = 3; //pin for potentiometer reading int val = 0; //variable to store the read value void setup() { pinMode(ledPin, OUTPUT); // sets pin as output }…
-
3
votes2
answers71
viewsQ: Allocation of values other than normal
def testes(x, y): while y: x, y = y, x % y return x I don’t understand this part of the code, what happens with the 'x' and the 'y' on the left side of the equals sign and what the 'y' does on the…