Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LCD_ST7735/Bitmap4bpp.h
- Committer:
- taylorza
- Date:
- 2015-01-28
- Revision:
- 0:d85c449aca6d
File content as of revision 0:d85c449aca6d:
#ifndef __BITMAP4BPP_H__
#define __BITMAP4BPP_H__
class Bitmap4bpp
{
public:
Bitmap4bpp(uint16_t width, uint16_t height);
~Bitmap4bpp();
inline uint16_t getWidth() { return _width; }
inline uint16_t getHeight() { return _height; }
inline uint16_t getStride() { return _stride; }
inline uint8_t *getBitmapData() { return _pBitmapData; }
void clear();
void setPixel(int16_t x, int16_t y, uint16_t color);
private:
uint16_t _width;
uint16_t _height;
uint16_t _stride;
uint8_t *_pBitmapData;
};
#endif //__BITMAP4BPP_H__