User Tools

Site Tools


lab_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

lab_1 [2016/05/05 16:35]
hutch [Pass Off]
lab_1 [2016/08/31 12:05] (current)
hutch [Source Code]
Line 86: Line 86:
 #define DISPLAY_OCT 8 #define DISPLAY_OCT 8
 #define DISPLAY_BIN 2 #define DISPLAY_BIN 2
 +
 +#define DISPLAY_INIT_STATUS_OK 1
 +#define DISPLAY_INIT_STATUS_FAIL 0
 +
 +#define DISPLAY_CHAR_WIDTH 6
 +#define DISPLAY_CHAR_HEIGHT 8
 +
 +#define DISPLAY_WIDTH 320
 +#define DISPLAY_HEIGHT 240
  
 #​define DISPLAY_BLACK ​  ​0x0000 #​define DISPLAY_BLACK ​  ​0x0000
Line 95: Line 104:
 #define DISPLAY_YELLOW ​ 0xFFE0 #define DISPLAY_YELLOW ​ 0xFFE0
 #define DISPLAY_WHITE ​  ​0xFFFF #define DISPLAY_WHITE ​  ​0xFFFF
 +
 +#define DISPLAY_LANDSCAPE_MODE_ORIGIN_UPPER_LEFT 1
 +#define DISPLAY_LANDSCAPE_MODE_ORIGIN_LOWER_RIGHT 3
 +#define DISPLAY_PORTRAIT_MODE_ORIGIN_LOWER_LEFT 0
 +#define DISPLAY_PORTRAIT_MODE_ORIGIN_UPPER_RIGHT 2
 +
 +typedef uint16_t display_pixel_t;​ // Standard pixel type.
  
 // This provides the primary high-level API to the LCD display, including the touch-panel. The interface // This provides the primary high-level API to the LCD display, including the touch-panel. The interface
Line 170: Line 186:
   unsigned long display_testFillScreen();​   unsigned long display_testFillScreen();​
   unsigned long display_testText();​   unsigned long display_testText();​
 +  // Calles all of the test routines.
 +  unsigned long display_test();​
  
 // The functionality for these routines comes from Adafruit_STMPE610 (touch controller). // The functionality for these routines comes from Adafruit_STMPE610 (touch controller).
lab_1.txt ยท Last modified: 2016/08/31 12:05 by hutch