Hello experts,
I'm honoured with a shiny new task:
"Make a Microchip Pic32 display things on an attached TFT."
With this task comes a whole library of stuff I've never seen before, neither has any of my colleagues. It's called the Harmony framework featuring the Graphics Display Designer X.
As long as I only designed to have one empty screen, everything went well. But now I want to add a button to that screen.
Everything is clicked and dragged in place, I hit the "Generate Code" button and then try to compile. That's giving a lot of errors. Here's the first:
error: 'GFX_GOL_BUTTON' undeclared (first use in this function)
But MPLabX knows the definition (Hit Ctrl+B). It's a
struct
in
gfx_gol_button.h
Now that header file isn't included. But there is a file
gfx.h that could include it:
#ifndef _GFX_H
#define _GFX_H
#define GRAPHICS_LIBRARY_VERSION 0x0400
#include "system_config.h"
#include "gfx/gfx_common.h"
#include "gfx/gfx_types_macros.h"
#include "gfx/gfx_primitive.h"
#include "gfx/gfx_colors.h"
#ifndef GFX_CONFIG_GOL_DISABLE
#include "gfx/gfx_gol.h"
#endif
As you can see, there's quite a bit of stuff commented out.
I hesitate to edit that file uncommenting the gfx_gol_button.h line since this file belongs to the framework. Therefore it ought to stay as it is. Otherwise I would have to change it back and forth whenever I need to work on another project.
The windows file system is with me in this regard as I lack the privileges to change
gfx.h.
For those firm in the embedded world: What to do now?
Is there a best practice for this kind of situation?
Should I copy that framework file to my project directory and bend all
#include
directives accordingly?