You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello 0x3333,
Same error persist even when the function is passed as parameter. Kindly check this code. I have made it more simple.
`#include <SPI.h>
#include "ugui.h"
#include "ugui_config.h"
Hi,
Following is my code on Arduino IDE using ATMEGA2560 Board.
`#include <SPI.h>
#include "ugui.h"
#include "ugui_config.h"
#define DISPLAY_WIDTH 160
#define DISPLAY_HEIGHT 128
#define MAX_OBJECTS 10
#define BuffOUT 40
char bufferOut[BuffOUT];
void window_1_callback(UG_MESSAGE *msg);
UG_GUI gui1963;
UG_COLOR color[3];
void my_int_func(UG_S16 x,UG_S16 y,UG_COLOR z)
{
unsigned int sum=0;
sum=x+y+z;
}
void setup()
{
void (*foo)(UG_S16,UG_S16,UG_COLOR);
foo = &my_int_func;
}
void loop()
{
// put your main code here, to run repeatedly:
}`
I encounter following error when compiling. Kindly provide an insight of whats going wrong?
testugui:27:43: error: invalid use of void expression
testugui:37:43: error: invalid use of void expression
Regards,
The text was updated successfully, but these errors were encountered: