hsm
MyButton_Arduino
Our great sponsors
hsm | MyButton_Arduino | |
---|---|---|
1 | 2 | |
106 | 9 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | about 2 years ago | |
C++ | C++ | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hsm
-
Is it ok to have state-wide conditions in a Finite State Machine? Or does that defeat the purpose?
Finally you can make a more complete Hierarchical (or Nested) State Machine, which allows you to have states within states. This is what we've done in several games I've worked on. This can allow reusing states in multiple contexts, such as being in an Idle state that pushes a Targeting state, or in a Running state that also pushes the Targeting state. You are then considered in all of the states on your state stack. This is tricky to implement right though and needs careful design, but used correctly can be extremely powerful. I'm aware of a C++ HSM library that I can recommend ( https://github.com/amaiorano/hsm ), but there's probably other good ones out there.
MyButton_Arduino
-
MyButton [Arduino library, v1.0.2] has a multiple buttons example now .. Details in comment !
Example link: https://github.com/Rad-hi/MyButton_Arduino/tree/master/examples/SSD1306_multiple_buttons
- Created an Arduino Lib that allows for this, in a couple of lines of code, and more with buttons
What are some alternatives?
sml - C++14 State Machine library
AceButton - An adjustable, compact, event-driven button library for Arduino that debounces and dispatches events to a user-defined event handler.
ehsm - An End-to-End Distributed and Scalable Cloud KMS (Key Management System) built on top of Intel SGX enclave-based HSM (Hardware Security Module), aka eHSM.
OneButton - An Arduino library for using a single button for multiple purpose input.
napkinXC - Extremely simple and fast extreme multi-class and multi-label classifiers.
ArduinoJson - 📟 JSON library for Arduino and embedded C++. Simple and efficient.
HFSM2 - High-Performance Hierarchical Finite State Machine Framework
JC_Button - Arduino library to debounce button switches, detect presses, releases, and long presses
lizardfs - LizardFS is an Open Source Distributed File System licensed under GPLv3.
Bugtton - Fast button debounce library for ATmega328P, uses registers.
hsmcpp - C++ based Hierarchical / Finite State Machine library oriented for embedded and RTOS systems.