Utility library for HSP SPo2 HR demo including user interface, board support adn accelerometer.

Embed: (wiki syntax)

« Back to documentation index

BufferedDisplay Class Reference

BufferedDisplay Class Reference

Framebuffered version of GraphicsDisplay. More...

#include <BufferedDisplay.h>

Inherits GraphicsDisplay.

Inherited by LS013B7DH03.

Public Member Functions

virtual void pixel (int x, int y, int colour)
 Override of GraphicsDisplay pixel() function to set a pixel in the buffer.
void showBMP (const uint8_t *bitmap, const uint32_t bmpWidth, const uint32_t bmpHeight, const uint32_t startX, const uint32_t startY)
 Function to move bitmap into frame buffer.

Detailed Description

Framebuffered version of GraphicsDisplay.

This has been implemented as part of the MemoryLCD library.

Definition at line 43 of file BufferedDisplay.h.


Member Function Documentation

void pixel ( int  x,
int  y,
int  colour 
) [virtual]

Override of GraphicsDisplay pixel() function to set a pixel in the buffer.

Override of GraphicsDisplay's pixel()

Parameters:
xZero-based x-axis index of pixel to set. 0 = leftmost.
yZero-based y-axis index of pixel to set. 0 = topmost.
colourColour value to set pixel to. In this implementation, only LSB is taken into account.

Definition at line 47 of file BufferedDisplay.cpp.

void showBMP ( const uint8_t *  bitmap,
const uint32_t  bmpWidth,
const uint32_t  bmpHeight,
const uint32_t  startX,
const uint32_t  startY 
)

Function to move bitmap into frame buffer.

Function to move bitmap into frame buffer arguments: * bitmap: pointer to uint8 array containing horizontal pixel data * bmpWidth: width of the bitmap in pixels (must be multiple of 8) * bmpHeight: height of the bitmap in pixels * startX: starting position to apply bitmap in horizontal direction (0 = leftmost) (must be multiple of 8) * startY: starting position to apply bitmap in vertical direction (0 = topmost)

Parameters:
bitmappointer to uint8 array containing horizontal pixel data
bmpWidthwidth of the bitmap in pixels (must be multiple of 8)
bmpHeightheight of the bitmap in pixels
startXstarting position to apply bitmap in horizontal direction (0 = leftmost) (must be multiple of 8)
startYstarting position to apply bitmap in vertical direction (0 = topmost)

Definition at line 111 of file BufferedDisplay.cpp.