X-Git-Url: http://git.piffa.net/web?a=blobdiff_plain;f=basic%2Fanalog_input%2FanalogInput_1%2FanalogInput_1.ino;h=231a9ab6f7e5ac16c584857b0408f4162de4aecf;hb=98f12e9ba20d5b505b1b6506569e31af9ac3ba89;hp=28547d5ab3f4f8b15121573531a29bad6d2cd116;hpb=e50f2cf8e7402ea56cd01835be9f88c53876bfd1;p=sketchbook_andrea diff --git a/basic/analog_input/analogInput_1/analogInput_1.ino b/basic/analog_input/analogInput_1/analogInput_1.ino index 28547d5..231a9ab 100644 --- a/basic/analog_input/analogInput_1/analogInput_1.ino +++ b/basic/analog_input/analogInput_1/analogInput_1.ino @@ -25,10 +25,12 @@ 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() {