SkinMan and KnobMan continued

In this tutorial we will use data prepared in previous article.

First we need to finish part 1 and part 2 of STEmWin tutorial to have display ready.

After that we need to get Demo.c into our project, we do this by dragging file from file explorer on our PC to our src folder in the root of our project:

Then we include this file:

We need some adjustments inside Demo.c.

  • we need to delete everything before static GUI_CONST_STORAGE unsigned long _acDemo[] = {. We leave the commented text for the sake of Segger licence
  • we need to change static GUI_CONST_STORAGE unsigned long to static const unsigned long
  • we need to delete everything after GUI_CONST_STORAGE GUI_BITMAP bmDemo = { to the end of file comment

Finally we just need to add a few lines of code (for loop) inside main.c:

With this done, after compiling and programming we have nice 3D looking, sandy green background on our display.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.