Powerful functions for you to use
ELC Functions

Functions home
Calendar overview
CAL.GETDATETIME
CAL.GETDAY
CAL.GETHOUR
CAL.GETMINUTE
CAL.GETMONTH
CAL.GETSECOND
CAL.GETYEAR
Debug overview
DEBUG.NEWLINE
DEBUG.WRITE
DEBUG.WRITELINE
File overview
FILE.CLOSE
FILE.EOF
FILE.OPEN
FILE.READLINE
FILE.WRITELINE
Graphics overview
GFX.CLEAR
GFX.COLLIDE
GFX.GETIMAGEHEIGHT
GFX.GETIMAGEWIDTH
GFX.GETBLUE
GFX.GETGREEN
GFX.GETRED
GFX.GETRGB
GFX.IMAGECLONE
GFX.IMAGECLONEPART
GFX.IMAGEDRAW
GFX.IMAGEHIDE
GFX.IMAGELOAD
GFX.IMAGELOADMAP
GFX.IMAGETOP
GFX.NEWLINE
GFX.SETDECIMALPLACES
GFX.SETIMAGEROTATION
GFX.SETIMAGESCALE
GFX.SETIMAGESIZE
GFX.SHOW
GFX.WRITE
GFX.WRITELINE
GFX.2DCIRCLE
GFX.2DGETRGB
GFX.2DLINE
GFX.2DOVERIMAGE
GFX.2DPOINT
GFX.2DRECTANGLE
GFX.2DTEXT
GFX.2DTEXTGETHEIGHT
GFX.2DTEXTGETWIDTH
Keyboard overview
KEY.CHECK
KEY.CHECKTHISKEY
KEY.READLINE
KEY.READLINECASE
KEY.WAIT
Math overview
MATH.ABS
MATH.COS
MATH.GETANGLE
MATH.INT
MATH.INVCOS
MATH.INVSIN
MATH.INVTAN
MATH.ROUND
MATH.SIN
MATH.SQRT
MATH.TAN
Mouse overview
MOUSE.GETX
MOUSE.GETY
MOUSE.CHECK
MOUSE.WAIT
Raspberry Pi overview
PI.GPIOCLEAR
PI.GPIOREAD
PI.GPIOSET
Sound overview
SND.GETFORMATS
SND.PLAYLOOP
SND.PLAYONCE
SND.STOPPLAY
SND.SOUNDLOAD
Text overview
TEXT.FIND
TEXT.FROMASCII
TEXT.FROMNUM
TEXT.GETCSV
TEXT.GETPART
TEXT.ISNUM
TEXT.LENGTH
TEXT.SPLIT
TEXT.TOASCII
TEXT.TOLOWER
TEXT.TONUM
TEXT.TOUPPER
Timer overview
TIMER.RESET
TIMER.SLEEP
TIMER.WAIT
Utility overview
UTIL.GETLOCATION
UTIL.PROXIMITY
UTIL.RANDOM
UTIL.USERNAME
Web overview
WEB.FINDJSON
WEB.FINDXMLELEMENT
WEB.FINDXMLTAG
WEB.GET
WEB.POST
WEB.URLENCODE
BREAKPOINT
FATALERROR
GARBAGECOLLECT
GETCOLS
GETROWS
SETCOLS
SETROWS

Raspberry Pi overview

Raspberry Pi functions allow you to control the GPIO pins on the Raspberry Pi expansion header, or read the same GPIO pins instead. The pins can be used to light LEDs, read switches, control motors - all sorts of things.

Three functions are provided - one to clear a GPIO pin (set its voltage low), one to set a GPIO pin (set its voltage high), and one to read whether a GPIO pin is floating high or being pulled low by some external electronics.

The image below provides the pinout of the GPIO connector on the Raspberry Pi. To control, say, GPIO 7 on pin 26 you would pass 7 as the GPIO ID in the functions below.


Previca Limited, the provider of YOUSRC, cannot be held responsible for any damage you cause to your Raspberry Pi device when you experiment with electronics and try to control the GPIO pins using these functions. For help we suggest you use the help forums at the Raspberry Pi website.

Function Description
PI.GPIOCLEAR Clear a GPIO pin so its voltage goes low
PI.GPIOREAD Read a GPIO pin to see if it is floating high or being pulled low
PI.GPIOSET Set a GPIO pin so its voltage goes high





Play free games

Copyright (C) Previca Limited 2013
Note: This site is optimised for 1024x768 screen resolution.
Although many PCs and monitors support higher resolutions, many users of this site are schools who may not have the latest equipment.
If you are lucky enough to have higher resolution equipment then we are sorry you may see spare white screen space - we hope you understand.
android, apps, raspberry pi, toys, clipart, sound clips, games, wii, nintendo, ds, microsoft, apple, music, playstation, xbox, child, children, teen, music, school