The wait in mci_WaitForEvent will delay all card transactions.

Dependencies:   FATFileSystem

Fork of EALib by EmbeddedArtists AB

Embed: (wiki syntax)

« Back to documentation index

GFXFb Class Reference

GFXFb Class Reference

Graphical library based on Adafruit's GFX using a Frame buffer. More...

#include <GFXFb.h>

Inherits Adafruit_GFX.

Public Member Functions

 GFXFb (uint16_t w, uint16_t h, uint16_t *fb=0)
 Create an interface to the GFX graphical library.
void setFb (uint16_t *fb)
 Associate a frame buffer with the graphical library.
uint16_t * getFb ()
 Get the frame buffer associated with the graphical library.
void writeString (const char *s)
 Write a null-terminated string.
int16_t getStringWidth (const char *s)
 Get the width in pixels of the given string.
int16_t getStringHeight (const char *s)
 Get the height in pixels of the given string.

Detailed Description

Graphical library based on Adafruit's GFX using a Frame buffer.

Definition at line 42 of file GFXFb.h.


Constructor & Destructor Documentation

GFXFb ( uint16_t  w,
uint16_t  h,
uint16_t *  fb = 0 
)

Create an interface to the GFX graphical library.

Parameters:
wwidth of the display
hheight of the display
fbframe buffer that will be used by the graphical library. Can be set by calling setFb instead.

Definition at line 10 of file GFXFb.cpp.


Member Function Documentation

uint16_t* getFb (  )

Get the frame buffer associated with the graphical library.

Returns:
the frame buffer associated with the graphical library.

Definition at line 70 of file GFXFb.h.

int16_t getStringHeight ( const char *  s )

Get the height in pixels of the given string.

Parameters:
sheight will be calculated on this string
Returns:
the height in pixels of the string

Definition at line 93 of file GFXFb.cpp.

int16_t getStringWidth ( const char *  s )

Get the width in pixels of the given string.

Parameters:
swidth will be calculated on this string
Returns:
the width in pixels of the string

Definition at line 80 of file GFXFb.cpp.

void setFb ( uint16_t *  fb )

Associate a frame buffer with the graphical library.

All drawing requests will be performed on the frame buffer.

Parameters:
fbframe buffer that will be used by the graphical library

Definition at line 64 of file GFXFb.h.

void writeString ( const char *  s )

Write a null-terminated string.

Parameters:
sthe string to write on the display

Definition at line 71 of file GFXFb.cpp.