Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

mruby-button-m5stack Build Status

Button class for M5Stack

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

  # ... (snip) ...

  conf.gem :git => 'https://github.com/mimaki/mruby-button-m5stack'
end

Constants

Button objects

  • Button::A
    Left button
  • Button::B
    Center button
  • Button::C
    Right button

Singleton methods

  • Button.new(id) => Button

Instance methods

  • button.pressed? => true/false
  • button.released? => true/false

example

puts Button::A.pressed?
until Button::B.pressed?
  # ...
end

License

under the MIT License:

  • see LICENSE file

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages