4d Systems 2.4" TFT LCD Intelligent Display Module SK-24PTU-Pi SK-24PTU-Pi Ficha De Dados

Códigos do produto
SK-24PTU-Pi
Página de 9
4D SYSTEMS                                                                                      uLCD-24-PTU-PI 
 
 
 © 2013 4D SYSTEMS                      Page 5 of 9                     www.4dsystems.com.au 
 
uLC
D
-24
-PT
U
-PI
 –
 Ra
spb
err
Pi
 Di
spl
ay 
Mo
dul
e P
ack
 
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, 
 
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)