Hi Gustermaximus,
Lots of things wrong in your code... to put it simply
genieSetup(9600); //Make sure this is the same baud rate of the LCD and the genieBegin command.
Gee that is going back a bit... why do you have that?
You then have this:
genieBegin (GENIE_SERIAL, 9600); //Serial1
comment is wrong, but other than that its correct. Does the same thing as the genieSetup above, but the genieSetup was from the very initial version of the library. Are you copying code from various places, or did you find that in the library?
You then have this
//genieAttachEventHandler(myGenieEventHandler);
Why is that commented out? You are not telling the genieArduino library which function it is to call when an event comes in, so nothing in your void myGenieEventHandler(void) function is going to happen...
Your myGenieEventHandler has some weird things going on in there too...
//Read from sensor every 100ms and write to the display
if (millis() >= waitPeriod)
{
Why is all of that code in your myGenieEventHandler function?
Is that just a copy paste issue or is that your actual code?
Looks like you are missing a bracket after that... and if not, then you are calling your events to be unloaded only once every 100ms which is not going to work well...
You also have this, just sitting out in the open, not inside some filtering if statments:
leddigits2_val = genieGetEventData(&Event);
Think you need to pause for a moment and read your code and think about what you are trying to do. The things mentioned above are going to stop most of what you want to achieve from working. After that however, the code in your handler needs some serious changes. Some serious errors/issues going on in there.
Have another go and post again, happy to help but have a think yourself too...
Regards
WanaGo