X-Git-Url: http://git.piffa.net/web?a=blobdiff_plain;f=basic%2Fanalog_input%2Fphoto_6_smooth%2Fphoto_6_smooth.ino;fp=basic%2Fanalog_input%2Fphoto_6_smooth%2Fphoto_6_smooth.ino;h=1aaa6685e4ca81b2d44ca7f7d8b12ca5a20b21c2;hb=6dc7b8f2ea8b8f73f4f98571028291d7469ef3ab;hp=9d1aa9c658d506e342361c16c54c4c9ca41a16f7;hpb=163683bdb0a87a13722db21fcc8a7889d79d4f3d;p=sketchbook_andrea diff --git a/basic/analog_input/photo_6_smooth/photo_6_smooth.ino b/basic/analog_input/photo_6_smooth/photo_6_smooth.ino index 9d1aa9c..1aaa668 100644 --- a/basic/analog_input/photo_6_smooth/photo_6_smooth.ino +++ b/basic/analog_input/photo_6_smooth/photo_6_smooth.ino @@ -62,7 +62,7 @@ int smoothRead(int sensorPin) { total = total + analogRead(sensorPin); delay(2); // Pausa per assestare il senstore } - return(total / 10); + return(total / 10); // Valore medio }