Distortion Pedal (Symmetric and Assymetric)

8 years 8 months ago #351 by Stormmaker
Hi,everyone!

Recently I find a function called constrain() in the Arduino official website.
www.arduino.cc/en/Reference/Constrain

Maybe we could use it like this:
in_ADC0 = constrain(in_ADC0, lower_threshold, upper_threshold);

The code maybe more concise in this way. :lol:
The following user(s) said Thank You: Ray

Please Log in to join the conversation.

6 years 2 months ago #1298 by tram8001

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in to join the conversation.

6 years 2 months ago - 6 years 2 months ago #1301 by Ray

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in to join the conversation.

Time to create page: 0.085 seconds