SK-32PTU-PI

4D SYSTEMS uLCD-32-PTU-PI
© 2013 4D SYSTEMS Page 4 of 9 www.4dsystems.com.au
uLCD-32-PTU-PI Raspberry Pi Display Module Pack
2. Advanced Hardware Options
The display module (uLCD-32-PTU) is a very capable and powerful piece of hardware, which can be
reconfigured beyond the boundaries of the Serial Environment, which is what is loaded on the module when
shipped.
With the use of the 4D Systems Workshop4 IDE Software, the display module can be configured and
programmed, which enables the user to utilise the display module in more ways than what is possible when
using it in the Serial configuration.
If a user wishes to investigate the capabilities of the uLCD-32-PTU and reconfigure the display module, please
refer to the Datasheet for the uLCD-32-PTU, available from the 4D systems website, www.4dsystems.com.au.
The user can freely change back to the configuration the module was shipped in if desired, all via the
Workshop4 IDE Software.
To take advantage of the 4D Systems Workshop 4 Software, a 4D Programming Cable is required, which can be
purchased from the 4D Systems website, or from a 4D Systems distributor. Depending on what the user
requires, a micro-SD card may also be required. Please refer to the datasheet for the uLCD-32-PTU for more
information, along with information on the Starter Kits which is also available, which includes both the
Programming Cable and a micro-SD card.
If the uLCD-32-PTU display module is programmed to be used with the ViSi-Genie environment, 4D Systems
has created a library for the Raspberry Pi specific for the ViSi-Genie environment. Please refer to the uLCD-32-
PTU-PI product page on the website for more information, along with the link for the 4D Systems Github
repository where this library is located for download.
If the uLCD-32-PTU display module is programmed to be used with the Serial environment, 4D Systems have
created a C library which is included with Workshop 4, but also available to be downloaded from the 4D
Systems Github repository. This library is a generic C library, so not specific to the Raspberry Pi, however can
easily be ported as all source code is included in the repository. An alternative is to not use the library at all,
and utilise the raw commands which can be sent from any host controller. Please refer to the Workshop 4
product page, and download the Serial command set document for more information.
4D SYSTEMS uLCD-32-PTU-PI
© 2013 4D SYSTEMS Page 5 of 9 www.4dsystems.com.au
uLCD-32-PTU-PI Raspberry Pi Display Module Pack
3. C Library Functions (For use with the Serial/SPE Environment)
The following is a list of the library functions available to use with the 4D Systems C Serial Library, which is a
generic C library which can be ported to run on the Raspberry Pi. The C Serial library is compatible with the
display module supplied with this Pack when the display module is configured with the Serial Environment
from the Workshop4 IDE. This listing below is not relevant if using the ViSi-Genie Environment.
For detailed information on each of these functions, please refer to the ‘Picaso Serial Command Set Reference
Manual’ Document, available from the Workshop 4 product page on the 4D Systems website,
www.4dsystems.com.au
Graphics Functions:
gfx_Cls()
gfx_ChangeColour(oldColour, newColour)
gfx_Circle(x, y, radius, colour)
gfx_CircleFilled(x, y, radius, colour)
gfx_Line(x1, y1, x2, y2, colour)
gfx_Rectangle(x1, y1, x2, y2, colour)
gfx_RectangleFilled(x1, y1, x2, y2, colour)
gfx_Polyline(n, vx, vy, colour)
gfx_Polygon(n, vx, vy, colour)
gfx_Triangle(x1, y1, x2, y2, x3, y3, colour)
gfx_Orbit(angle, distance)
gfx_PutPixel(x, y, colour)
gfx_GetPixel(x, y)
gfx_MoveTo(xpos, ypos)
gfx_LineTo(xpos, ypos)
gfx_SetClipRegion()
gfx_Ellipse(x, y, xrad, yrad, colour)
gfx_EllipseFilled(x, y, xrad, yrad, colour)
gfx_Button(state, x, y, buttonColour, textColour, font, textWidth, textHeight, text)
gfx_Panel(state, x, y, width, height, colour)
gfx_Slider(mode, x1, y1, x2, y2, colour, scale, value)
gfx_ScreenCopyPaste(xs, ys, xd, yd, width, height)
gfx_TriangleFilled(x1, y1, x2, y2, x3, y3, colr)
gfx_PolygonFilled(n, vx, vy, colr)
gfx_Get(mode)
gfx_ClipWindow(x1, y1, x2, y2)
gfx_Set(function, value)
gfx_Set shortcuts:
gfx_BGcolour(colour)
gfx_Clipping(mode)
gfx_TransparentColour(colour)
gfx_Transparency(mode)
gfx_FrameDelay(delay)
gfx_ScreenMode(delay)
gfx_OutlineColour(colour)
gfx_Contrast(value)
gfx_LinePattern(pattern)
gfx_BevelWidth(mode)
gfx_BevelShadow(value)
Touch Screen Functions:
touch_DetectRegion(x1, y1, x2, y2)
touch_Set(mode)
touch_Get(mode)
4D SYSTEMS uLCD-32-PTU-PI
© 2013 4D SYSTEMS Page 6 of 9 www.4dsystems.com.au
uLCD-32-PTU-PI Raspberry Pi Display Module Pack
Text and String Functions:
charwidth('char')
charheight('char')
putstr(pointer)
txt_Set(function, value)
txt_Set shortcuts:
txt_FGcolour(colour)
txt_BGcolour(colour)
txt_FontID(id)
txt_Width(multiplier)
txt_Height(multiplier)
txt_Xgap(pixelcount)
txt_Ygap(pixelcount)
txt_Opacity(mode)
txt_Bold(mode)
txt_Italic(mode)
txt_Inverse(mode)
txt_Underlined(mode)
txt_Attributes(value)
txt_Wrap(value)
Image Control Functions:
img_SetPosition(handle, index, xpos, ypos)
img_Enable(handle, index)
img_Disable(handle, index)
img_Darken(handle, index)
img_Lighten(handle, index)
img_SetWord(handle, index, offset, word)
img_GetWord(handle, index, offset)
img_Show(handle, index)
img_SetAttributes(handle, index, value)
img_ClearAttributes(handle, index, value)
img_Touched(handle, index)
Media Functions (SD/SDHC memory Card):
media_Init()
media_SetAdd(HIword, LOword)
media_SetSector(HIword, LOword)
media_RdSector(Destination_Address)
media_WrSector(Source_Address)
media_ReadByte()
media_ReadWord()
media_WriteByte(byte_val)
media_WriteWord(word_val)
media_Flush()
media_Image(x, y)
media_Video(x, y)
media_VideoFrame(x, y, frameNumber)
Serial (UART) Communications Functions:
setbaud(rate)

SK-32PTU-PI

Mfr. #:
Manufacturer:
4D Systems
Description:
Display Development Tools 3.2" Rsbry Pi St Kit w/2GB SD & Prg Adptr
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet