Changes

Jump to navigation Jump to search
262 bytes removed ,  03:26, 21 March 2010
m
no edit summary
Line 2: Line 2:     
Used for example to interface with the touchscreen.
 
Used for example to interface with the touchscreen.
      
<source lang=cpp>
 
<source lang=cpp>
   −
static u32 cdcCurrentPage = 99;
+
static u32 cdcCurrentPage = -1;
 
  −
u32 TouchReadBuffer(...)
  −
{
  −
// Check if panel is touched (one of these 2):
  −
// val = CDC_ReadRegisterEx(3, 9)
  −
// val = CDC_ReadRegisterEx(3, 14)
  −
 
  −
// if touched, read touch data into buf (2 bytes per touch position)
  −
// CDC_ReadRegistersEx(252, 1, buf, 20)
  −
}
      
void CDC_ChangePage(u32 page)
 
void CDC_ChangePage(u32 page)
143

edits

Navigation menu