Jump to content

IRIS-Core

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by IRIS-Core

  1. Got it working!! I have the callbacks working now for buttons, dials, page changes. Anyone wants the code, please PM me.
  2. I'll tell you guys what I'm up to and see if you can help. All I'm really trying to do is display a series static images on pages. I'm able to display images, redraw them, etc - but I want to be able to use the buttons and dials to switch between pages - but I can't get any of the callback code to work. Using the LUA interface, I've so far been able to get the FIPS unit to add page(s), display images. What I am hoping for are FIPS specific examples of how to register callbacks for page changes, softbutton presses, dial turn. Doesn't have to be anything crazy, something that shows the callback registered and a function that simply prints to the console when the callback is triggered. I've tried implementing code from a variety of scripts here in the forum. I've got this code working as a *very* simple example. require("saitek"); --variable for page id pageOne = 1 --variable for image image1 = "image1.png" --init the unit saitek.Initialize(); --add a page saitek.AddPage("SFIP", 1, pageOne, true); --set an image to the page saitek.SetImageFromFile("SFIP",pageOne,1,1,image1,true); while true do -- Just keep it running for now. end Can anyone show me how to get callback stuff working?
  3. FIP Button and Dial LUA Example Hi there; Big fan of the LUA work on FIP, can anyone give me a simple example of properly accessing the FIP buttons and dials? I've tried my best to implement examples from here, but am having problems. Thanks! Iris
×
×
  • Create New...