Example for the LPC4088 QSB Base Board

Dependencies:   EALib mbed

Committer:
embeddedartists
Date:
Wed Apr 09 10:27:13 2014 +0000
Revision:
1:1c2ea8267953
Parent:
0:4ec3f2d970da
Updated to latest version of EALib

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 0:4ec3f2d970da 1
embeddedartists 0:4ec3f2d970da 2 #ifndef GRAPHICS_H
embeddedartists 0:4ec3f2d970da 3 #define GRAPHICS_H
embeddedartists 0:4ec3f2d970da 4
embeddedartists 0:4ec3f2d970da 5 class Graphics {
embeddedartists 0:4ec3f2d970da 6 public:
embeddedartists 0:4ec3f2d970da 7
embeddedartists 0:4ec3f2d970da 8 Graphics(uint16_t *pFrmBuf, uint16_t dispWidth, uint16_t dispHeight);
embeddedartists 0:4ec3f2d970da 9
embeddedartists 0:4ec3f2d970da 10 void setFrameBuffer( uint16_t *pFrmBuf );
embeddedartists 0:4ec3f2d970da 11 void put_line(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int16_t color);
embeddedartists 0:4ec3f2d970da 12 void put_circle( int32_t cx, int32_t cy, int16_t color, int32_t radius, int32_t Filled );
embeddedartists 0:4ec3f2d970da 13
embeddedartists 0:4ec3f2d970da 14 protected:
embeddedartists 0:4ec3f2d970da 15 uint16_t windowX;
embeddedartists 0:4ec3f2d970da 16 uint16_t windowY;
embeddedartists 0:4ec3f2d970da 17 uint16_t *pFrmBuf;
embeddedartists 0:4ec3f2d970da 18
embeddedartists 0:4ec3f2d970da 19 int32_t abs(int32_t v1) const;
embeddedartists 0:4ec3f2d970da 20
embeddedartists 0:4ec3f2d970da 21 virtual void plot4points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled );
embeddedartists 0:4ec3f2d970da 22 void plot8points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled );
embeddedartists 0:4ec3f2d970da 23
embeddedartists 0:4ec3f2d970da 24 };
embeddedartists 0:4ec3f2d970da 25
embeddedartists 0:4ec3f2d970da 26 #endif
embeddedartists 0:4ec3f2d970da 27
embeddedartists 0:4ec3f2d970da 28
embeddedartists 0:4ec3f2d970da 29