First my thanks to all who helped me get started and I'm pleased to show my first bit of code that puts 5 blocks at the bottom just above the F1 to F5 keys.
#include "fxlib.h" #include "dispbios.h" int AddIn_main(int isAppli, unsigned short OptionNum) { Bdisp_AllClr_DDVRAM(); Bdisp_AreaReverseVRAM(5, 57, 20, 63); // F1 PrintMini(11,58,(unsigned char*)"1",MINI_REV); Bdisp_AreaReverseVRAM(26, 57, 41, 63); // F2 PrintMini(32,58,(unsigned char*)"2",MINI_REV); Bdisp_AreaReverseVRAM(47, 57, 62, 63); // F3 PrintMini(53,58,(unsigned char*)"3",MINI_REV); Bdisp_AreaReverseVRAM(68, 57, 83, 63); // F4 PrintMini(74,58,(unsigned char*)"4",MINI_REV); Bdisp_AreaReverseVRAM(89, 57, 104, 63); // F5 PrintMini(95,58,(unsigned char*)"5",MINI_REV); Bdisp_PutDisp_DD(); Sleep(15000); } #pragma section _BR_Size unsigned long BR_Size; #pragma section #pragma section _TOP int InitializeSystem(int isAppli, unsigned short OptionNum) { return INIT_ADDIN_APPLICATION(isAppli, OptionNum); } #pragma section
What I want to do is to put this into an endless loop unless the Menu key is pressed, because at present it just shows for 15 seconds and then finishes.
Please point me to where I can find the best solution, I'm sure it has been solved many times but I have tried a few ways without success. I have read the SDK libraries and the solution may be waiting for a key or a timer but I'd like to know the preferred way before I start seriously.
Warm Regards
Paul Brassington