
Oct. 18, 2018
Page
6
of 18
Rev 1.00
M2351 emWin
3
emWin Sample Code
There are two emWin sample code in the M2351 BSP SampleCode\NuMaker directory:
emWin_GUIDemo
: utilizes the emWin library to demonstrate widgets feature;
emWin_SimpleDemo
: utilizes the emWin library to demonstrate interactive feature.
3.1 Project Structure
The following uses emWin_SimpleDemo as a sample to explain the emWin project structure
in BSP. This sample contains a frame window, four buttons, a text and a text editor. User can
update the number shown in the text field by clicking four buttons shown on the display panel.
The project structure is shown in the following figure. The CMSIS group contains system
startup code. The user group contains the main file. The Libraries group contains low level
driver. The emWin group contains emWin library and panel configuration for the NuMicro
®
family. The Application group contains the C code generated by emWin GUIBuilder. The tslib
group is the touch screen library.