A simple example using a display and networking at the same time.

Dependencies:   EALib EthernetInterface mbed-rtos mbed

Committer:
embeddedartists
Date:
Mon Jul 21 09:42:16 2014 +0000
Revision:
0:833824a40ced
Very basic example of using display and networking at the same time.

Who changed what in which revision?

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