diff options
author | yash1112 | 2017-07-10 17:08:48 +0530 |
---|---|---|
committer | yash1112 | 2017-07-10 17:08:48 +0530 |
commit | 49d8281d2da2f4c6bf0e62d148a8a7328d3bf970 (patch) | |
tree | 8b555b3797807de0db3849f0d91664c12d785c9b /src/c/scilab-arduino/cmd_analog_in_volt | |
parent | bd03b38be0918837e147e969c6bb2014900009db (diff) | |
download | Scilab2C_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.c | 4 |
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); } |