summaryrefslogtreecommitdiff
path: root/src/c/scilab-arduino/cmd_analog_in_volt
diff options
context:
space:
mode:
authoryash11122017-07-10 17:08:48 +0530
committeryash11122017-07-10 17:08:48 +0530
commit49d8281d2da2f4c6bf0e62d148a8a7328d3bf970 (patch)
tree8b555b3797807de0db3849f0d91664c12d785c9b /src/c/scilab-arduino/cmd_analog_in_volt
parentbd03b38be0918837e147e969c6bb2014900009db (diff)
downloadScilab2C_fossee_old-49d8281d2da2f4c6bf0e62d148a8a7328d3bf970.tar.gz
Scilab2C_fossee_old-49d8281d2da2f4c6bf0e62d148a8a7328d3bf970.tar.bz2
Scilab2C_fossee_old-49d8281d2da2f4c6bf0e62d148a8a7328d3bf970.zip
Arduino toolbox error Resolved
Diffstat (limited to 'src/c/scilab-arduino/cmd_analog_in_volt')
-rw-r--r--src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c b/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c
index 7018df2..f961719 100644
--- a/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c
+++ b/src/c/scilab-arduino/cmd_analog_in_volt/u8cmd_analog_in_volts.c
@@ -15,8 +15,8 @@
float u8cmd_analog_in_volts(uint8 board_no, uint8 pin)
{
- float a;
- a = ((5*(float)analogRead(pin))/1023);
+ float a; //declaration of variable
+ a = ((5*(float)analogRead(pin))/1023); //recieved 10 bit input from analog pin is convert to voltage(0 - 50
return(a);
}