Example that shows how to use emWin. This example is based on NXP's POS demo available at lpcware.com

Dependencies:   EALib ewgui mbed

Committer:
embeddedartists
Date:
Mon Apr 14 08:40:59 2014 +0000
Revision:
2:cbf00ac63f35
Parent:
0:2052561807c5
Updated to use latest ewgui

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 0:2052561807c5 1
embeddedartists 0:2052561807c5 2 #ifndef EWGUIIMPL_H
embeddedartists 0:2052561807c5 3 #define EWGUIIMPL_H
embeddedartists 0:2052561807c5 4
embeddedartists 0:2052561807c5 5 #include "mbed.h"
embeddedartists 0:2052561807c5 6 #include "EwGui.h"
embeddedartists 0:2052561807c5 7 #include "EwPainter.h"
embeddedartists 0:2052561807c5 8 #include "TouchPanel.h"
embeddedartists 0:2052561807c5 9
embeddedartists 0:2052561807c5 10 class EwGuiImpl : public EwGui {
embeddedartists 0:2052561807c5 11 public:
embeddedartists 0:2052561807c5 12
embeddedartists 0:2052561807c5 13
embeddedartists 0:2052561807c5 14 EwGuiImpl();
embeddedartists 0:2052561807c5 15
embeddedartists 0:2052561807c5 16 virtual void* getMemoryBlockAddress();
embeddedartists 0:2052561807c5 17 virtual uint32_t getMemoryBlockSize();
embeddedartists 0:2052561807c5 18
embeddedartists 0:2052561807c5 19 virtual uint32_t getDisplayWidth();
embeddedartists 0:2052561807c5 20 virtual uint32_t getDisplayHeight();
embeddedartists 0:2052561807c5 21
embeddedartists 0:2052561807c5 22 virtual void* getFrameBufferAddress();
embeddedartists 0:2052561807c5 23
embeddedartists 0:2052561807c5 24 virtual void getTouchValues(int32_t* x, int32_t* y, int32_t* z);
embeddedartists 0:2052561807c5 25
embeddedartists 0:2052561807c5 26 void calibrate();
embeddedartists 0:2052561807c5 27
embeddedartists 0:2052561807c5 28
embeddedartists 0:2052561807c5 29 private:
embeddedartists 0:2052561807c5 30
embeddedartists 0:2052561807c5 31 uint32_t _width;
embeddedartists 0:2052561807c5 32 uint32_t _height;
embeddedartists 0:2052561807c5 33 uint32_t _fb;
embeddedartists 0:2052561807c5 34 uint32_t _mem;
embeddedartists 0:2052561807c5 35 uint32_t _memSz;
embeddedartists 0:2052561807c5 36 TouchPanel* _touch;
embeddedartists 0:2052561807c5 37
embeddedartists 0:2052561807c5 38 void drawCalibPoint(EwPainter &painter, int32_t x, int32_t y);
embeddedartists 0:2052561807c5 39 };
embeddedartists 0:2052561807c5 40
embeddedartists 0:2052561807c5 41 #endif