I'm trying to learn how to create addins for this calculator and managed to compile the code like the below but when I run it on my calculator only some traces of the default Equation background screen image are visible - when I press Menu to get out the image shows properly just for a moment before exiting to the main home screen. Is it a problem with the below code or something else - please help.


Code:
#include <fxcg/display.h>
#include <fxcg/keyboard.h>

int main() {
    SetBackGround(1);
   int key;
   while (1) {
        GetKey(&key);
   }
   return 0;
}
The add-ins load with the screen in 3-bits-per-pixel color mode. The backgrounds are in 16-bits-per-pixel. You need to enable the full-color mode with Bdisp_EnableColor:

http://prizm.cemetech.net/index.php/Bdisp_EnableColor

Your code would become:

Code:
#include <fxcg/display.h>
#include <fxcg/keyboard.h>

int main() {
   Bdisp_EnableColor(1);
   SetBackGround(1);
   int key;
   while (1) {
        GetKey(&key);
   }
   return 0;
}
thank you very much - I will try it our tonight
Thanks - you are a star!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement