upm  0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Public Member Functions
LoL Class Reference

API for the Olimex LoL array. More...

Detailed Description

This module defines the LoL API and implementation for a simple framebuffer.

lolshield.jpg

Public Member Functions

 LoL ()
 
 ~LoL ()
 
unsigned char * getFramebuffer ()
 
bool getPixel (int x, int y)
 
void setPixel (int x, int y, bool pixel)
 

Constructor & Destructor Documentation

LoL ( )

Instantiates an LoL object singleton

~LoL ( )

LoL object destructor

Member Function Documentation

unsigned char * getFramebuffer ( )

Gets a framebuffer pointer

Returns
0 if successful
bool getPixel ( int  x,
int  y 
)

Gets a pixel at specified coordinates

Parameters
xCoordinate x
yCoordinate y
Returns
true if the pixel is on, false if off
Exceptions
std::invalid_argumentif pixel is out of bounds
void setPixel ( int  x,
int  y,
bool  pixel 
)

Sets a pixel at specified coordinates

Parameters
xCoordinate x
yCoordinate y
pixelfalse is off, true is on
Exceptions
std::invalid_argumentif pixel is out of bounds

The documentation for this class was generated from the following files: