Redge

Results 39 comments of Redge

I have a small LED matrix display that I use to show time and some messages contained in a circular buffer. The home button cycles through the different “applications” (CLEAR...

trigger is not reentrant. I mean that when I push the NEXT button and the buffer is empty, a second recursive call to trigger is made inside the STATE_MESSAGE_enter() function....

for example in this kind of state machine, the states are "chained". The machine moves from one state to another without external event. http://teachmetomake.com/wordpress/arduino-tutorial-state-machine

> Should each callback have different assumptions about the machine state when called? During a transition, the machine has no state...or a IN_FLIGHT/NULL state. The exit() state is in the...

we have: ``` STATE_A with STATE_A_onEnter() and STATE_A_onExit() STATE_B with STATE_B_onEnter() and STATE_B_onExit() STATE_C with STATE_C_onEnter() and STATE_C_onExit() STATE_D with STATE_D_onEnter() and STATE_D_onExit() STATE_A_STATE_B_transition() addTransition(STATE_A, STATE_B, EVENT_GOTOB) addTransition(STATE_A, STATE_C, EVENT_GOTOC)...

> I've drawn out the state machine you've described Yes That's a simplified version of what I'm currently developing. It's a 6$ clone of https://lametric.com/ with a wemos D1 mini...

i'll try to make a post on https://hackaday.io About the state name or ID, I really don't know how to do without it. I understand It encourages some bad programming...

I also miss the onState() function. But I think it's 2 different features. So far, for my current project, I don't need to call anything in the main loop and...

The thing is.... it's implemented.... But you have to use the "thelmos-master" branch. It works perfectly.... This new branch should become the master branch.... ![image](https://user-images.githubusercontent.com/1172508/31995991-031658e6-b987-11e7-8630-7b9d30ffe7ec.png)