Calculator
For those of you who prefer a more procedural programming style the Calculator sample demonstrates the four basic math functions which are add, subtract, divide, and multiply. For simplicity, results are calculated in the order entered to avoid low/high order conflicts that could yield unexpected results. An example would be operations such as multiplication or division taking precedence over lower order operations when the user intended that an addition or subtraction should be calculated first. For a more Object-Oriented Programming approach to widget programming, see the code in the "16 Picture Puzzle" widget.
Things to learn:
- Assigning actions to the mylo™ keyboard
- How to simulate mouse functionality
- You can use a procedural programming approach