Ceci est un test de projet pour le site internet.
Image associée au projet :
![](https://s1.qwant.com/thumbr/0x380/0/e/bc532f5d37b4a2e9a90bd552ad8af70d0d46c06ca2cdc2dee4ddb005808078/t725.png?u=https%3A%2F%2Fcsg.tinkercad.com%2Fthings%2F5E2Ou2HMNcv%2Ft725.png%3Frev%3D1606185436215000000%26s%3D%26v%3D1%26type%3Dcircuits&q=0&b=1&p=0&a=0)
int sensorPin = A0; // select the input pin for the potentiometer int ledPin = 13; // select the pin for the LED int sensorValue = 0; // variable to store the value coming from the sensor void setup() { // declare the ledPin as an OUTPUT: pinMode(ledPin, OUTPUT); } void loop() { // read the value from the sensor: sensorValue = analogRead(sensorPin); // turn the ledPin on digitalWrite(ledPin, HIGH); // stop the program for <sensorValue> milliseconds: delay(sensorValue); // turn the ledPin off: digitalWrite(ledPin, LOW); // stop the program for for <sensorValue> milliseconds: delay(sensorValue); }
Objets imprimés en 3D :