Table of Contents

UML State Machine

Source: https://en.wikipedia.org/wiki/UML_state_machine

Additional Information:

Presentation

Youtube

Exercise

1. Bank Safe

Step

Connect a potentiometer to A0. Use the function valRange = map(…) to map the raw potentiometer values to the integer numbers 0..9 . The variable varRange can acquire these 10 different values.

Print the current value of valRange to the terminal, but only, if the value changes.