Is it possible to use a slider as a switch? I know with MIDI it is

Hi, I’m a newbe,
Is it possible to map a slider 0-100 and specify 0-49 to command a logic LOW on a Vpin, and a value of 50-100 will result in a logic HIGH on the same pin? I know from experience with MIDI that this works fine. I understand additional code would probably be necessary.

Why?.. just set the range from 0-1

Or set the range to whatever you want and use map() or other logic code like if() else

1 Like