Class Keypad

java.lang.Object
com.diozero.devices.Keypad

public class Keypad
extends java.lang.Object

References:

Note, this class should be run with the mmap provider as it configures input pull-up registers, something that cannot be done with the sysfs provider unfortunately. You can of course wire it up with your own pull-up resistors.

  • Field Summary

    Fields 
    Modifier and Type Field Description
    static char NO_KEY  
  • Constructor Summary

    Constructors 
    Constructor Description
    Keypad​(int[] rowGpios, int[] colGpios, char[][] keys)  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.Character> getKeys()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Keypad

      public Keypad​(int[] rowGpios, int[] colGpios, char[][] keys)
  • Method Details

    • getKeys

      public java.util.List<java.lang.Character> getKeys()