Method: Neotrellis::Keypad#count_events

Defined in:
lib/neotrellis/keypad.rb

#count_eventsInteger

Get the number of events (key pressed or released) waiting to be processed in the Seesaw buffer.



93
94
95
96
97
98
99
# File 'lib/neotrellis/keypad.rb', line 93

def count_events
  begin
    @seesaw.read_byte(KEYPAD_BASE, KEYPAD_COUNT)
  rescue ReadError
    0
  end
end