22 lines
284 B
C++
22 lines
284 B
C++
#include <Arduino.h>
|
|
const int potPin = 33;
|
|
//la valeur du potentiomètre
|
|
|
|
|
|
float potvalue=0.00;
|
|
|
|
|
|
void setup() {
|
|
//pinMode(potPin,INPUT);
|
|
Serial.begin(9600);
|
|
|
|
|
|
}
|
|
void loop() {
|
|
|
|
|
|
//mesure la valeur du potentiomtre
|
|
potvalue=analogRead(potPin);
|
|
Serial.println (potvalue);
|
|
delay(1000);
|
|
} |