Graphical demo for the LPC4088 Experiment Base Board with one of the Display Expansion Kits. This program displays a Mandelbrot calculation in a circular zoomed-in sequence.

Dependencies:   EALib mbed

Committer:
embeddedartists
Date:
Fri Oct 03 13:21:52 2014 +0000
Revision:
0:e24e3d741c52
First version

Who changed what in which revision?

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