diff options
author | Brijeshcr | 2017-07-20 19:39:55 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-20 19:39:55 +0530 |
commit | 95ba66169e2f30d87694703b6162c58d371fceda (patch) | |
tree | 701adbda6608b3a8274e45ca5a5fe82039a50a66 /macros/Hardware/RasberryPi/RPI_DigitalIn.sci | |
parent | c70a50ed3df714fc52f18b41539c7f0ac2734f32 (diff) | |
parent | 38f1fb926d82f9144a5e9a28595d2d21dcc08f8e (diff) | |
download | scilab2c-95ba66169e2f30d87694703b6162c58d371fceda.tar.gz scilab2c-95ba66169e2f30d87694703b6162c58d371fceda.tar.bz2 scilab2c-95ba66169e2f30d87694703b6162c58d371fceda.zip |
Added RPI demo and lcd128x64 fixed
Diffstat (limited to 'macros/Hardware/RasberryPi/RPI_DigitalIn.sci')
-rw-r--r-- | macros/Hardware/RasberryPi/RPI_DigitalIn.sci | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/macros/Hardware/RasberryPi/RPI_DigitalIn.sci b/macros/Hardware/RasberryPi/RPI_DigitalIn.sci deleted file mode 100644 index 781c49c8..00000000 --- a/macros/Hardware/RasberryPi/RPI_DigitalIn.sci +++ /dev/null @@ -1,43 +0,0 @@ -// 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 -// Organization: FOSSEE, IIT Bombay -// Email: toolbox@scilab.in - -function state = RPI_DigitalIn(pin) -// Function to read current state on digital pins. -// -// Calling Sequence -// state = RPI_DigitalIn(pin) -// -// Parameters -// pin : pin of RPi to be used -// state : current state of the pin (0 -> LOW, 1 -> HIGH) -// -// Description -// This fucntion is used for reading the current state on gpio pins of RPi. 'RPI_DigitalSetup' function must be called before this for setting up pin as input. 'pin' must be specified from list given. 'state' specifies the input state (0 -> Low, 1-> High) -// Examples -// RPI_DigitalIn(RPI_GPIO_P1_03) //Reads the state of pin 3 of header P1. -// -// See also -// RPI_DigitalSetup RPI_DigitalOut -// -// -// Authors -// Siddhesh Wani -// -// ----------------------------------------------------------------- -//Pins of header P1 which can be used as GPIO -supported_pins = [3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,26,27,28,29,... - 31,31,33,35,36,37,38,40]; - -PinIsGPIO = members(pin, supported_pins); //Check if input pin supports GPIO - -//If given pin does not support GPIO functionality, raise the error -if(PinIsGPIO == 0) - error(9999, 'SCI2CERROR: Given pin number doesnot support GPIO functionality.'); -end -state = 1; -endfunction |