Example for the LPC4088 QSB Base Board

Dependencies:   EALib mbed

Committer:
embeddedartists
Date:
Wed Apr 09 09:43:40 2014 +0000
Revision:
1:aafddd9761a3
Parent:
0:7546db568365
Updated to latest version of EALib

Who changed what in which revision?

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