MPLAB Harmony Learning Part 9 - Creating a Graphics Development Project
[Copy link]
This article is reproduced from Microchip Wheatfield Forum - Author: Brother Cannon Fodder [align =left] [font =Arial] [align=left ] Graphics development is a very important Application, Harmony, as an important software architecture of PIC32, of course needs to support graphics development. [font =Arial]This article will introduce how Harmony integrates a series of graphics development tools to allow users to develop their own graphics more conveniently and quickly. [font =Arial]Steps to Create a Graphic Development Project [color=rgb (0, 0, 0)]The first step is to prepare the hardware and software platform[ /font] Note: This example is based on MPLAB X V3.25 version, users can use the latest MPLAB X version on the official website. [font =Arial] B, compiler: XC32 Note :The examples in this article are based on XC32 V1.40 version. Users can use the latest XC32 version on the official website. [font =Arial] C, software library: Harmony Note: The examples in this article are based on Harmony V1.07. Users can use the latest Harmony version on the official website. D, Hardware: PIC32 USB Starter Kit II+LCC Graphic PICtailPlus Daughter Board + Graphic Display Truly 320x240 Board. The following figures show several boards used in the examples in this article. If you need the schematics and other detailed information of these boards, please log in to Microchip's official website to download them. i. PIC32USB Starter Kit II ii. LCC Graphic PICtail Plus Daughter Board iii. GraphicDisplay Truly 320x240 Board The second step is to create a Harmony project A. Configure Device Configuration ![]() ![]() [/ color]B, select BSP, note that the BSP file options define some hardware-related configurations, but only the development board officially released by Microchip If the hardware of the project is different from the development board officially provided by Microchip, you still need to manually configure the hardware. The third step is to set upLCC ControllerDriver [ /align] Note that the Memory Mode in this step is hardware-dependent. You need to set the jumpers J4~J19 on the LCC Graphic PICtail Plus Daughter Board to select internal and external RAM. 1J9: Pin1-Pin2 is External RAM, Pin3-Pin2 is Internal RAM. 0, 0)]The following figure shows the location of the jumper selections on the LCC Graphic PICtail Plus Daughter Board. Step 4. Use GraphicLibrary to add the content to be displayed [/ A. Select MHC's Graphic Library and click "Execute ”You can enter MHGC and start Harmony-based graphical programming. B. Introduction to the Basic Functions of MHGC Graphical Programming ToolBox: Contains all applicable controls. ComposerManagement Window: Allows the user to edit resources, styles, pages and display objects. ScreenWindow: Allows the user to edit the actual displayed page. PropertiesWindow: Allows the user to adjust the parameters of pages and display objects. C. Edit the page properties and set the background color sans-serif]![]() D. Add some resources that need to be used. The pictures and fonts we use in graphic development are all resources. E. Set the display style Scheme. F.Add different display pages Screen. GSelect the control to be displayed from the control toolbox and drag it to the editing page Screen. , 0)]![]() H. Set the properties of the physical object. So far, you have built a Harmony-based graphics project that displays a "Hello World!" Summary A, graphics development based onHarmony is more integrated Harmony integrates the functions of GDD X and GRC, so that engineers can develop graphics on the same platform after setting up the hardware. B, the general steps for adding relevant display content in the Graphic Library are: Plan the display page Screen -> Add the required resources Asset -> Define the display style Scheme -> Drag the control to the page -> Define some properties of the control.
|