After a while I compiled on old program (4 months old) anf found that the sprites are not working.
static LGFX lcd;
static LGFX_Sprite sprite(&lcd);
WiFiUDP udp;
//sprite balk
sprite.createSprite(480,20);
When I compiled it got the error
/Users/jankromhout/Documents/Arduino/read_udp_message/read_udp_message.ino:21:1: error: 'sprite' does not name a type
sprite.createSprite(480,20);
What is wrong with my code?