Class NeoKeyHandler

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public class NeoKeyHandler
     implements AutoCloseable
                        

    Handles getting button presses from a NeoKey1x4, along with setting pretty colors, etc. Performs a single "debounce" by only reporting a button press if it's different from the last read. This works well in a fairly "tight" loop, but if you're doing other things in between, you may want to do your own debouncing.

    THIS CLASS IS NOT THREAD-SAFE! It is not intended to be used across multiple threads.