When I am explore and learn Simulink and State-Flow in Matlab, I find a example ---- Tetris.
Tetris use up, down, left and right of keyboard to control the shape. How about I use the signal form Mobile phone to control this game?
| State-Flow Example -- Tetris |
2. Thought
I use the orientation sensor of mobile phone to replace up, down, left and right.
![]() |
| the orientation sensor's axis |
| Simulink |
| State_Flow Move |

No comments:
Post a Comment