gpio_mouse_device - notro/fbtft_tools GitHub Wiki

gpio_mouse_device is a kernel module for registering a gpio_mouse device.

Usage

modprobe gpio_mouse_device up=GPIO down=GPIO left=GPIO right=GPIO bleft=GPIO

Arguments

  • up (required)
    GPIO line for up value
  • down (required)
    GPIO line for down value
  • left (required)
    GPIO line for left value
  • right (required)
    GPIO line for right value
  • bleft (required)
    GPIO line for left button button
  • bmiddle
    GPIO line for middle button
  • bright
    GPIO line for right button
  • scan_ms
    integer in ms specifying the scan periode (default=10)
  • polarity
    Pin polarity, active high or low (default=0 high)
  • pullup
    Enable internal pull up resistor for all (only on Raspberry Pi)
  • pulldown
    Enable internal pull down resistor for all (only on Raspberry Pi)
  • verbose
    0 - silent (default)
    1 - print values to kernel log
    2 - more output

Example

Switches is active LOW and uses the internal pullup resistors

modprobe gpio_mouse_device pullup polarity=1 up=23 down=17 left=18 right=21 bleft=22

References

piwik