Microcontroller Propeller 1

Keep any value in range

Introduction The Propeller native SPIN and SPIN2 languages include many efficient instructions to solve common programming tasks. For example, how to keep a value between a certain range of allowed values? Here’s an example using just one line of code!…