Difference between revisions of "Configuration"

From uGFX Wiki
Jump to: navigation, search
Line 4: Line 4:
 
A template of the '''gfxconf.h''' file can be found in the top-level directory of the µGFX folder. It is called '''gfxconf.example.h'''. You can copy this file to your project directory and rename it to '''gfxconf.h'''.
 
A template of the '''gfxconf.h''' file can be found in the top-level directory of the µGFX folder. It is called '''gfxconf.example.h'''. You can copy this file to your project directory and rename it to '''gfxconf.h'''.
  
 
+
== GINPUT ==
 +
{| class="wikitable"
 +
! scope="col"|Option
 +
! scope="col"|Description
 +
|-
 +
|GINPUT_NEED_MOUSE
 +
|Enable support for a pointing device such as a [[#Touchscreen|touchscreen]].
 +
|-
 +
|GINPUT_NEED_KEYBOARD
 +
|Not implemented yet.
 +
|-
 +
|GINPUT_NEED_TOGGLE
 +
|Enable support for a [[#Digital_input|digital input]].
 +
|-
 +
|GINPUT_NEED_DIAL
 +
|Enable support for an [[#Analog_input|analog input]].
 +
|-
 +
|GINPUT_MOUSE_CALIBRATE_EXTREMES
 +
|If this is set to ''TRUE'', the calibration points are displayed at the very corner of the display. This gives an overall more accurate result but they are less intuitive. See [[GINPUT#Calibration|calibration]]
 +
|-
 +
|GINPUT_MOUSE_MAX_CALIBRATION_ERROR
 +
|This macro is part of the config file of the driver in your board directory and takes a pixel value. It defines how big the pixel offset of the test point can be before the calibration process is repeated automatically.
 +
|}
  
  
 
'''To Be continued...'''
 
'''To Be continued...'''

Revision as of 22:24, 1 July 2014

This page describes each and every configuration option for the µGFX library. More detailed descriptions and further readings can be found in the documentation pages of the corresponding module.

Template

A template of the gfxconf.h file can be found in the top-level directory of the µGFX folder. It is called gfxconf.example.h. You can copy this file to your project directory and rename it to gfxconf.h.

GINPUT

Option Description
GINPUT_NEED_MOUSE Enable support for a pointing device such as a touchscreen.
GINPUT_NEED_KEYBOARD Not implemented yet.
GINPUT_NEED_TOGGLE Enable support for a digital input.
GINPUT_NEED_DIAL Enable support for an analog input.
GINPUT_MOUSE_CALIBRATE_EXTREMES If this is set to TRUE, the calibration points are displayed at the very corner of the display. This gives an overall more accurate result but they are less intuitive. See calibration
GINPUT_MOUSE_MAX_CALIBRATION_ERROR This macro is part of the config file of the driver in your board directory and takes a pixel value. It defines how big the pixel offset of the test point can be before the calibration process is repeated automatically.


To Be continued...