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@0:d85c449aca6d, 2015-01-28 (annotated)
- Committer:
- taylorza
- Date:
- Wed Jan 28 03:26:07 2015 +0000
- Revision:
- 0:d85c449aca6d
Working maze scrolling, pre-maze compression
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| taylorza | 0:d85c449aca6d | 1 | #ifndef __BITMAP4BPP_H__ |
| taylorza | 0:d85c449aca6d | 2 | #define __BITMAP4BPP_H__ |
| taylorza | 0:d85c449aca6d | 3 | |
| taylorza | 0:d85c449aca6d | 4 | class Bitmap4bpp |
| taylorza | 0:d85c449aca6d | 5 | { |
| taylorza | 0:d85c449aca6d | 6 | public: |
| taylorza | 0:d85c449aca6d | 7 | Bitmap4bpp(uint16_t width, uint16_t height); |
| taylorza | 0:d85c449aca6d | 8 | ~Bitmap4bpp(); |
| taylorza | 0:d85c449aca6d | 9 | |
| taylorza | 0:d85c449aca6d | 10 | inline uint16_t getWidth() { return _width; } |
| taylorza | 0:d85c449aca6d | 11 | inline uint16_t getHeight() { return _height; } |
| taylorza | 0:d85c449aca6d | 12 | inline uint16_t getStride() { return _stride; } |
| taylorza | 0:d85c449aca6d | 13 | |
| taylorza | 0:d85c449aca6d | 14 | inline uint8_t *getBitmapData() { return _pBitmapData; } |
| taylorza | 0:d85c449aca6d | 15 | |
| taylorza | 0:d85c449aca6d | 16 | void clear(); |
| taylorza | 0:d85c449aca6d | 17 | void setPixel(int16_t x, int16_t y, uint16_t color); |
| taylorza | 0:d85c449aca6d | 18 | private: |
| taylorza | 0:d85c449aca6d | 19 | uint16_t _width; |
| taylorza | 0:d85c449aca6d | 20 | uint16_t _height; |
| taylorza | 0:d85c449aca6d | 21 | uint16_t _stride; |
| taylorza | 0:d85c449aca6d | 22 | uint8_t *_pBitmapData; |
| taylorza | 0:d85c449aca6d | 23 | }; |
| taylorza | 0:d85c449aca6d | 24 | |
| taylorza | 0:d85c449aca6d | 25 | #endif //__BITMAP4BPP_H__ |