]> git.piffa.net Git - sketchbook_andrea/blobdiff - basic/analog_input/analogInput_1/analogInput_1.ino
Data type con funzione
[sketchbook_andrea] / basic / analog_input / analogInput_1 / analogInput_1.ino
index 28547d5ab3f4f8b15121573531a29bad6d2cd116..231a9ab6f7e5ac16c584857b0408f4162de4aecf 100644 (file)
  
  http://arduino.cc/en/Tutorial/AnalogInput
  
+ Schema: http://lab.piffa.net/schemi/potenziometro_bb.png
  */
 
-int sensorPin = A0;    // select the input pin for the potentiometer
-int ledPin = 13;      // select the pin for the LED
+const int sensorPin = A0;    // select the input pin for the potentiometer
+const int ledPin = 13;      // select the pin for the LED
 int sensorValue = 0;  // variable to store the value coming from the sensor
 
 void setup() {