summaryrefslogtreecommitdiff
path: root/2.3-1/macros/Hardware/RasberryPi/lcd128x64
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/macros/Hardware/RasberryPi/lcd128x64')
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64Orientation.sci48
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64circle.sci44
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64clear.sci40
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64ellipse.sci45
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64line.sci44
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64lineTo.sci42
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64point.sci42
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64putchar.sci44
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64puts.sci44
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64rectangle.sci45
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64setOrigin.sci41
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64setup.sci37
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/buildmacros.sce14
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/lcd128x64/names12
14 files changed, 542 insertions, 0 deletions
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64Orientation.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64Orientation.sci
new file mode 100755
index 00000000..5bfe4dcd
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64Orientation.sci
@@ -0,0 +1,48 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64Orientation(mode)
+// Function to set lcd orientation.
+//
+// Calling Sequence
+// RPI_lcd128x64Orientation(mode)
+//
+// Parameters
+// mode: Orientation Mode, integer from 0 to 3
+//
+// Description
+// This function sets the orientation of the lcd display.
+//
+// mode can take values:
+// <itemizedlist>
+// <listitem>0 :Portrait</listitem>
+// <listitem>1 :Landscape</listitem>
+// <listitem>2 :Portrait, flipped</listitem>
+// <listitem>3 :Landscape, flipped</listitem>
+// </itemizedlist>
+//
+// Examples
+// RPI_lcd128x64Orientation(1)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="LOn#1#"+string(mode)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64circle.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64circle.sci
new file mode 100755
index 00000000..96358a32
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64circle.sci
@@ -0,0 +1,44 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64circle(x,y,r,color,fill)
+// Function to draw a circle
+//
+// Calling Sequence
+// RPI_lcd128x64circle(x,y,r,color,fill)
+//
+// Parameters
+// x : integer, x coordinate of centre
+// y : integer, y coordinate of centre
+// r : integer, radius of the circle
+// color: integer, color of the rectangle
+// fill : 0 (for empty) or 1 (for filled)
+//
+// Description
+// This function draws a circle of radius r with x,y as centre, specified color and fill.
+//
+// Examples
+// RPI_lcd128x64circle(3,3,2,0,0)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="Lci#5#"+string(x)+"#"+string(y)+"#"+string(r)+"#"+string(color)+"#"+string(fill)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64clear.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64clear.sci
new file mode 100755
index 00000000..5b800491
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64clear.sci
@@ -0,0 +1,40 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64clear(color)
+// Function to clear the lcd screen
+//
+// Calling Sequence
+// RPI_lcd128x64clear(color)
+//
+// Parameters
+// color: integer, color of the lcd
+//
+// Description
+// This function clears the lcd display to the given colour.
+//
+// Examples
+// RPI_lcd128x64clear(0)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="LCl#1#"+string(color)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64ellipse.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64ellipse.sci
new file mode 100755
index 00000000..b4281e61
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64ellipse.sci
@@ -0,0 +1,45 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64ellipse(cx,cy,xr,yr,color,fill)
+// Function to draw a ellipse
+//
+// Calling Sequence
+// RPI_lcd128x64ellipse(cx,cy,xr,yr,color,fill)
+//
+// Parameters
+// cx : integer, x coordinate of centre
+// cy : integer, y coordinate of centre
+// xr : integer, x radius
+// yr : integer, y radius
+// color: integer, color pf the ellipse
+// fill : 0 (for empty) or 1 (for filled)
+//
+// Description
+// This function draws an ellipse with centre at (cx,cy) x and y radii as xr and yr, specified color and fill
+//
+// Examples
+// RPI_lcd128x64ellipse()
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="Lel#6#"+string(cx)+"#"+string(cy)+"#"+string(xr)+"#"+string(yr)+"#"+string(color)+"#"+string(fill)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64line.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64line.sci
new file mode 100755
index 00000000..951a6639
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64line.sci
@@ -0,0 +1,44 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64line(x0,y0,x1,y1,color)
+// Function to plota line.
+//
+// Calling Sequence
+// RPI_lcd128x64line(x0,y0,x1,y1,color)
+//
+// Parameters
+// x0 : integer, initial x coordinate
+// y0 : integer, initial y coordinate
+// x1 : integer, final x coordinate
+// y1 : integer, final y coordinate
+// color: integer, color of the line
+//
+// Description
+// This function plots a line from (x0,y0) to (x1,y1).
+//
+// Examples
+// RPI_lcd128x64line(0,0,1,1,0)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="Lli#5#"+string(x0)+"#"+string(y0)+"#"+string(x1)+"#"+string(y1)+"#"+string(color)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64lineTo.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64lineTo.sci
new file mode 100755
index 00000000..466713eb
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64lineTo.sci
@@ -0,0 +1,42 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64lineTo(x,y,color)
+// Function to plot a line
+//
+// Calling Sequence
+// RPI_lcd128x64lineTo(x,y,color)
+//
+// Parameters
+// x : integer, final x coordinate
+// y : integer, final y coordinate
+// color: integer, color of the line
+//
+// Description
+// This function draws a line from the current position to the point (x,y) specified.
+//
+// Examples
+// RPI_lcd128x64lineTo(2,2,0)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="LlT#3#"+string(x)+"#"+string(y)+"#"+string(color)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64point.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64point.sci
new file mode 100755
index 00000000..287b022a
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64point.sci
@@ -0,0 +1,42 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64point(x,y,color)
+// Function to plot a point
+//
+// Calling Sequence
+// RPI_lcd128x64point(x,y,color)
+//
+// Parameters
+// x : integer, x coordinate
+// y : integer, y coordinate
+// color: integer, color of the point
+//
+// Description
+// This function plots a point at x,y.
+//
+// Examples
+// RPI_lcd128x64point(2,2,0)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="Lpo#3#"+string(x)+"#"+string(y)+"#"+string(color)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64putchar.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64putchar.sci
new file mode 100755
index 00000000..a6b27240
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64putchar.sci
@@ -0,0 +1,44 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64putchar(x,y,c,bg,fg)
+// Function to print a single character.
+//
+// Calling Sequence
+// RPI_lcd128x64putchar(x,y,c,bg,fg)
+//
+// Parameters
+// x : integer, x coordinate of starting point
+// y : integer, y coordinate of starting point
+// c : integer, from 0 to 255, character to print
+// bg: integer, background color
+// fg: integer, foreground color
+//
+// Description
+// This function prints a single character to the screen.
+//
+// Examples
+// RPI_lcd128x64putchar(0,1,128,1,0)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="Lpc#5#"+string(x)+"#"+string(y)+"#"+string(c)+"#"+string(bg)+"#"+string(fg)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64puts.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64puts.sci
new file mode 100755
index 00000000..6785f067
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64puts.sci
@@ -0,0 +1,44 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64puts(x,y,s,bf,fg)
+// Function to send a string to the lcd display
+//
+// Calling Sequence
+// RPI_lcd128x64puts(x,y,s,bg,fg)
+//
+// Parameters
+// x : integer, x coordinate of starting point
+// y : integer, y coordinate of starting point
+// s : string to send
+// bg: integer, background color
+// fg: integer, foreground color
+//
+// Description
+// This function sends a string to the display. Obeys \n and \r formatting.
+//
+// Examples
+// RPI_lcd128x64puts(0,0,'Talos guide you',0,1)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="LPu#5#"+string(x)+"#"+string(y)+"#"+string(s)+"#"+string(bg)+"#"+string(fg)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64rectangle.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64rectangle.sci
new file mode 100755
index 00000000..ccda4c62
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64rectangle.sci
@@ -0,0 +1,45 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64rectangle(x1,y1,x2,y2,color,fill)
+// Function to draw a rectangle
+//
+// Calling Sequence
+// RPI_lcd128x64rectangle(x1,y1,x2,y2,color,fill)
+//
+// Parameters
+// x1 : integer, x coordinate of upper left corner
+// y1 : integer, y coordinate of upper left corner
+// x2 : integer, x coordinate of lower right corner
+// y2 : integer, y coordinate of lower right corner
+// color: integer, color of the rectangle
+// fill : 0 (for empty) or 1 (for filled)
+//
+// Description
+// This function draws a rectangle with (x1,y1) as the upper left point and (x2,y2) as the lower right point with specified color and fill.
+//
+// Examples
+// RPI_lcd128x64rectangle(0,0,1,1,0,1)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="Lre#6#"+string(x1)+"#"+string(y1)+"#"+string(x2)+"#"+string(y2)+"#"+string(color)+"#"+string(fill)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64setOrigin.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64setOrigin.sci
new file mode 100755
index 00000000..996b0623
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64setOrigin.sci
@@ -0,0 +1,41 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 RPI_lcd128x64setOrigin(x,y)
+// Function to set origin
+//
+// Calling Sequence
+// RPI_lcd128x64setOrigin(x,y)
+//
+// Parameters
+// x: x coordinate
+// y: y coordinate
+//
+// Description
+// This function sets the origin of the lcd display
+//
+// Examples
+// RPI_lcd128x64setOrigin(1,0)
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="LOr#2#"+string(x)+"#"+string(y)+"#";
+ if getos=="Linux" then
+ unix_w("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos=="Windows" then
+ RPI_winR=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64setup.sci b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64setup.sci
new file mode 100755
index 00000000..60ded7d8
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/RPI_lcd128x64setup.sci
@@ -0,0 +1,37 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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 out=RPI_lcd128x64setup()
+// Function to initialize the lcd display
+//
+// Calling Sequence
+// RPI_lcd128x64setup()
+//
+// Description
+// This function initialises the lcd display.
+//
+// Examples
+// RPI_lcd128x64setup()
+// See also
+// RPI_lcd128x64setup, RPI_lcd128x64update, RPI_lcd128x64setOrigin, RPI_lcd128x64Orientation, RPI_lcd128x64orientCoord, RPI_lcd128x64ScreenSize, RPI_lcd128x64point, RPI_lcd128x64line, RPI_lcd128x64lineTo, RPI_lcd128x64rectangle, RPI_lcd128x64circle, RPI_lcd128x64ellipse, RPI_lcd128x64putchar, RPI_lcd128x64puts, RPI_lcd128x64clear, RPI_lcdCursorBlink, RPI_lcdCharDef, RPI_lcdClear, RPI_lcdCursor, RPI_lcdDisplay, RPI_lcdInit, RPI_lcdPutchar, RPI_lcdPosition, RPI_lcdPrintf, RPI_lcdPuts, RPI_lcdSendCommand
+//
+// Authors
+// Jorawar Singh
+//
+// Bibliography
+// http://wiringpi.com/reference/
+
+ commande="Lse#0#";
+ if getos()=="Linux" then
+ out=unix_g("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ elseif getos()=="Windows" then
+ [out,RPI_winR]=dos("python -c ""import socket;s=socket.socket();s.connect((''"+RPI_piAdress+"'',9077));s.send(''"+commande+"'');print(s.recv(1024));s.close()""");
+ end
+endfunction
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/buildmacros.sce b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/buildmacros.sce
new file mode 100755
index 00000000..7d533f7b
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/buildmacros.sce
@@ -0,0 +1,14 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// 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
+// Author: Jorawar Singh
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+tbx_build_macros(TOOLBOX_NAME, get_absolute_file_path('buildmacros.sce'));
+
+clear tbx_build_macros;
diff --git a/2.3-1/macros/Hardware/RasberryPi/lcd128x64/names b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/names
new file mode 100755
index 00000000..82439718
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/lcd128x64/names
@@ -0,0 +1,12 @@
+RPI_lcd128x64Orientation
+RPI_lcd128x64circle
+RPI_lcd128x64clear
+RPI_lcd128x64ellipse
+RPI_lcd128x64line
+RPI_lcd128x64lineTo
+RPI_lcd128x64point
+RPI_lcd128x64putchar
+RPI_lcd128x64puts
+RPI_lcd128x64rectangle
+RPI_lcd128x64setOrigin
+RPI_lcd128x64setup