Problem with the 'menu-system_02_10_24’ example from the Wiki
Posted: Mon May 04, 2026 1:00 pm
Hi All,
Has anyone tried the ‘menu-system_02_10_24’ example from the Wiki?
I thought I would study it to learn how to use to GLCD display manager. However, there is an error in the initialise macro within the calculation box titled ‘Set up all the colours’. As shown in the image below (i.e. it does not contain colour information):
I have tried defining a Byte array titled Colours myself based on the following:
But I am missing something. When simulated there are multiple errors at icons that require the colours to be defined. The first example is shown below:
When I attempt to define the Colours to use, I get error message ‘Parameter 7 is invalid Cannot convert to Type Byte[9]’.
I have no doubt the error is because I have not set up the Byte Array correctly, but having tried several unsuccessful ideas I am now stuck. If anyone has got this example to work, can they please give me some pointers?
Many thanks
Martin
Has anyone tried the ‘menu-system_02_10_24’ example from the Wiki?
I thought I would study it to learn how to use to GLCD display manager. However, there is an error in the initialise macro within the calculation box titled ‘Set up all the colours’. As shown in the image below (i.e. it does not contain colour information):
I have tried defining a Byte array titled Colours myself based on the following:
But I am missing something. When simulated there are multiple errors at icons that require the colours to be defined. The first example is shown below:
When I attempt to define the Colours to use, I get error message ‘Parameter 7 is invalid Cannot convert to Type Byte[9]’.
I have no doubt the error is because I have not set up the Byte Array correctly, but having tried several unsuccessful ideas I am now stuck. If anyone has got this example to work, can they please give me some pointers?
Many thanks
Martin