Yilin Sun
6e8d03ec0a
Signed-off-by: Yilin Sun <imi415@imi.moe> |
||
---|---|---|
.. | ||
EmbeddedWizard | ||
GeneratedCode | ||
armgcc | ||
DeviceDriver.c | ||
DeviceDriver.h | ||
RTE_Device.h | ||
board.c | ||
board.h | ||
clock_config.c | ||
clock_config.h | ||
ew_gui_brick_game_v3_14.xml | ||
ewconfig.h | ||
ewdef.h | ||
ewmain.c | ||
ewmain.h | ||
ili9341_spi.c | ||
ili9341_spi.h | ||
main.c | ||
pin_mux.c | ||
pin_mux.h | ||
readme.md |
readme.md
Overview
This GUI demo is developed with the Embedded Wizard GUI solution.
The sample application 'BrickGame' implements a classic "paddle and ball" game. In the game, a couple of brick rows are arranged in the upper part of the screen. A ball travels across the screen, bouncing off the top and side walls of the screen. When a brick is hit, the ball bounces away and the brick is destroyed. The player loses a turn when the ball touches the bottom of the screen. To prevent this from happening, the player has a movable paddle to bounce the ball upward, keeping it in play.
This examples runs bare metal, but Embedded Wizard is also possible to use with FreeRTOS. Our official Build Environments, that can be downloaded as described above, includes examples and demos that illustrate the integration of FreeRTOS and can be used for your reference.
In order create your own GUI application powered by the latest version of Embedded Wizard that is suitable for the LPCXpresso55S69 Evaluation Kit, please visit https://doc.embedded-wizard.de/getting-started-lpcxpresso55s69
For this example a simulation of the user interface is also available. It can be used under following link http://www.embedded-wizard.de/NXP-SDK-Examples/LPCXpresso55S69/BrickGame/Simulation/ with any web browser. The simulation uses the JS/WebGL Embedded Wizard Platform Package. For further information about Embedded Wizard, please visit our web site at https://www.embedded-wizard.de/platforms/nxp/lpc55S69
SDK version
- Version: 2.15.000
Toolchain supported
- GCC ARM Embedded 12.2
- IAR embedded Workbench 9.40.1
- MCUXpresso 11.8.0
- Keil MDK 5.38.1
Hardware requirements
- Micro USB cable
- LPCXpresso55S69-EVK board
- Personal Computer
- Adafruit 1947 display
Board settings
- Connect the Adafruit 1947 display to Arduino connector.
Prepare the Demo
- Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
- Open a serial terminal with the following settings:
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
- Download the program to the target board.
- Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, the sample application is displayed on the LCD screen. The log below shows the output of the sample application 'BrickGame' in the terminal window:
Initialize Display... [OK]
Initialize Touch Driver... [OK]
Initialize Memory Manager... [OK]
Initialize Graphics Engine... [OK]
Create Embedded Wizard Root Object... [OK]
Create Embedded Wizard Viewport... [OK]
---------------------------------------------
Target system LPCXpresso55S69
Color format RGB565
MemoryPool address 0x200121A8
MemoryPool size 179200 bytes
Scratch-pad buffer address 0x2000A788
Scratch-pad buffer size 15360 pixel
Framebuffer size 320 x 48
EwScreenSize 240 x 320
Graphics accelerator none
Vector graphics support enabled
Warp function support enabled
Index8 bitmap resource format enabled
RGB565 bitmap resource format enabled
Bidirectional text support enabled
Operating system none
External flash device none
Toolchain <Toolchain name>
C-Compiler version <C-Compiler version>
Build date and time <MMM DD YYYY, HH:MM:SS>
Runtime Environment (RTE) version 10.00
Graphics Engine (GFX) version 10.00
Max surface cache size 0 bytes
Glyph cache size 128 x 128
Max issue tasks 60
Surface rotation 90
---------------------------------------------