Rabbit OP7100 User Manual Page 105

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 104
User’s Manual 99
4.6 Touchscreen (OP7200 only)
The GLTOUCHSCREEN.LIB library in the TouchScreens directory allows the user to
link adjacent pixel locations on the LCD to create a button. The button can then be trans-
lated by the touchscreen when pressed.When x and y coordinates on the display screen are
specified, x can range from 0 to 319, and y can range from 0 to 239. These numbers repre-
sent pixels from the top left corner of the display.
Initializes the GLTOUCHSCREEN.LIB library, must be called at power-up before any other
GLTOUCHSCREEN.LIB library functions can be used. This function allocates xmem SRAM for the
storage of the button parameters.
PARAMETER
MaxButtons is the number of buttons to initialize
RETURN VALUE
The unsigned long memory location of the BtnData area
SEE ALSO
btnCreateText, btnCreateBitmap, btnRecall, btnStore, btnDisplay,
btnDisplayLevel, btnClear, btnClearLevel, btnAttributes, btnMsgBox,
btnDisplayText, btnClearRegion
Stores the btnData structure in xmem SRAM. This function is normally called by
btnCreateText or by btnCreateBmp.
PARAMETERS
xmemPtr is the xmem address of the pointer to an array of button descriptors
BtnID is the button ID number of wherethe structure will be stored
RETURN VALUE
1 when completed
SEE ALSO
btnRecall, btnInit, btnCreateText, btnCreateBitmap
unsigned long btnInit(int MaxButtons);
int btnStore(unsigned long xmemPtr, int BtnID);
Page view 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 171 172

Comments to this Manuals

No comments