Very simple library for controlling small graphic LCDs

Dependents:   LCD

Embed: (wiki syntax)

« Back to documentation index

gfxLcd Class Reference

gfxLcd Class Reference

gfxLcd class More...

#include <lcd.h>

Public Member Functions

 gfxLcd ()
 Initialize LCD.
void init ()
 Initialize LCD.
void fillScreen (bool color)
 Fill screen with black or white.
void putPixel (char x, char y, bool color)
 Set/clear pixel in framebuffer.
void update ()
 Refresh display.

Data Fields

GbufMem fbuf
 Frame buffer for the LCD.

Detailed Description

gfxLcd class

This class is used for controlling the LCD.

Definition at line 23 of file lcd.h.


Constructor & Destructor Documentation

gfxLcd (  )

Initialize LCD.

Definition at line 17 of file lcd.cpp.


Member Function Documentation

void fillScreen ( bool  color )

Fill screen with black or white.

Parameters:
colortrue = black, false = white

Definition at line 75 of file lcd.cpp.

void init (  )

Initialize LCD.

Definition at line 22 of file lcd.cpp.

void putPixel ( char  x,
char  y,
bool  color 
)

Set/clear pixel in framebuffer.

Parameters:
xx position of the pixel.
yy position of the pixel.
colortrue = set (black), false = clear (white)

Definition at line 92 of file lcd.cpp.

void update (  )

Refresh display.

Definition at line 109 of file lcd.cpp.


Field Documentation

GbufMem fbuf

Frame buffer for the LCD.

Definition at line 28 of file lcd.h.