Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Graphics.h
00001 00002 #ifndef GRAPHICS_H 00003 #define GRAPHICS_H 00004 00005 class Graphics { 00006 public: 00007 00008 Graphics(uint16_t *pFrmBuf, uint16_t dispWidth, uint16_t dispHeight); 00009 00010 void setFrameBuffer( uint16_t *pFrmBuf ); 00011 void put_line(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int16_t color); 00012 void put_circle( int32_t cx, int32_t cy, int16_t color, int32_t radius, int32_t Filled ); 00013 00014 protected: 00015 uint16_t windowX; 00016 uint16_t windowY; 00017 uint16_t *pFrmBuf; 00018 00019 int32_t abs(int32_t v1) const; 00020 00021 virtual void plot4points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled ); 00022 void plot8points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled ); 00023 00024 }; 00025 00026 #endif 00027 00028
Generated on Mon Jul 18 2022 16:40:23 by
