diff options
author | siddhu8990 | 2015-09-07 23:06:39 +0530 |
---|---|---|
committer | siddhu8990 | 2015-09-07 23:06:39 +0530 |
commit | 895d4d14a2b7e71435c4257cbd4f2253550a0b82 (patch) | |
tree | aa7fc22b1b4e4dc1c9229389457317777e759dbb /src/c/scilab-arduino/cmd_digital_in | |
parent | a6bf6562c74bb0117cc2f59f34cf49a24b6cb6b9 (diff) | |
parent | 0bdaec9811b3e463514393aa1d3da6c3a96891a1 (diff) | |
download | scilab2c-895d4d14a2b7e71435c4257cbd4f2253550a0b82.tar.gz scilab2c-895d4d14a2b7e71435c4257cbd4f2253550a0b82.tar.bz2 scilab2c-895d4d14a2b7e71435c4257cbd4f2253550a0b82.zip |
Scilab to arduino conversion working with some tweaks
Diffstat (limited to 'src/c/scilab-arduino/cmd_digital_in')
-rw-r--r-- | src/c/scilab-arduino/cmd_digital_in/u8cmd_digital_ins.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/c/scilab-arduino/cmd_digital_in/u8cmd_digital_ins.c b/src/c/scilab-arduino/cmd_digital_in/u8cmd_digital_ins.c new file mode 100644 index 00000000..1d0036a4 --- /dev/null +++ b/src/c/scilab-arduino/cmd_digital_in/u8cmd_digital_ins.c @@ -0,0 +1,19 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Arnaud TORSET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + +#include "cmd_digital_in.h" + +uint8 u8cmd_digital_ins(uint8 board_no, uint8 pin) +{ + return((uint8)digitalRead(pin)); +} + |