OttoDIY / OttoDIYLib

Latest and official Libraries for Arduino Otto DIY robots
http://www..ottodiy.com/
GNU General Public License v3.0
115 stars 73 forks source link

fix repeating input #38

Closed Wene closed 7 months ago

Wene commented 1 year ago

In the calibration example, once a key was pressed, it got stored in a global variable. This lead to basically repeating this key until another key gets pressed.

This PR changes this behavior to expect one keypress per movement step. Without a keypress, the movement stops now.