Port of the LPC4088 QSB EA LCD Sphere Demo to the LPC4088 DM using the DMSupport lib. Dropping the QSB EALib
Dependencies: DMBasicGUI DMSupport
Fork of lpc4088_displaymodule_hello_world by
Just a quick hack to get something good looking on the LPC4088DM
/media/uploads/tecnosys/lpc4088dm.jpg
Graphics.h@5:d2f1c9185c5b, 2015-04-29 (annotated)
- Committer:
- tecnosys
- Date:
- Wed Apr 29 05:34:03 2015 +0000
- Revision:
- 5:d2f1c9185c5b
initial port of EA LCD Demo to DMSupport libs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tecnosys | 5:d2f1c9185c5b | 1 | |
tecnosys | 5:d2f1c9185c5b | 2 | #ifndef GRAPHICS_H |
tecnosys | 5:d2f1c9185c5b | 3 | #define GRAPHICS_H |
tecnosys | 5:d2f1c9185c5b | 4 | |
tecnosys | 5:d2f1c9185c5b | 5 | class Graphics { |
tecnosys | 5:d2f1c9185c5b | 6 | public: |
tecnosys | 5:d2f1c9185c5b | 7 | |
tecnosys | 5:d2f1c9185c5b | 8 | Graphics(uint16_t *pFrmBuf, uint16_t dispWidth, uint16_t dispHeight); |
tecnosys | 5:d2f1c9185c5b | 9 | |
tecnosys | 5:d2f1c9185c5b | 10 | void setFrameBuffer( uint16_t *pFrmBuf ); |
tecnosys | 5:d2f1c9185c5b | 11 | void put_line(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int16_t color); |
tecnosys | 5:d2f1c9185c5b | 12 | void put_circle( int32_t cx, int32_t cy, int16_t color, int32_t radius, int32_t Filled ); |
tecnosys | 5:d2f1c9185c5b | 13 | |
tecnosys | 5:d2f1c9185c5b | 14 | protected: |
tecnosys | 5:d2f1c9185c5b | 15 | uint16_t windowX; |
tecnosys | 5:d2f1c9185c5b | 16 | uint16_t windowY; |
tecnosys | 5:d2f1c9185c5b | 17 | uint16_t *pFrmBuf; |
tecnosys | 5:d2f1c9185c5b | 18 | |
tecnosys | 5:d2f1c9185c5b | 19 | int32_t abs(int32_t v1) const; |
tecnosys | 5:d2f1c9185c5b | 20 | |
tecnosys | 5:d2f1c9185c5b | 21 | virtual void plot4points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled ); |
tecnosys | 5:d2f1c9185c5b | 22 | void plot8points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled ); |
tecnosys | 5:d2f1c9185c5b | 23 | |
tecnosys | 5:d2f1c9185c5b | 24 | }; |
tecnosys | 5:d2f1c9185c5b | 25 | |
tecnosys | 5:d2f1c9185c5b | 26 | #endif |
tecnosys | 5:d2f1c9185c5b | 27 | |
tecnosys | 5:d2f1c9185c5b | 28 | |
tecnosys | 5:d2f1c9185c5b | 29 |