Hey all, newbie here trying to map analog input from 0-1023 to 0-100 with
finNum = map(myNum, 10, 1023, 0, 100);
my issue is that sometimes lowest number my pots puts out would be like 15 or 18. If I change the code to
finNum = map(myNum, 100, 1023, 0, 100);
It works but then I sometimes get negative value, how to write the code above to read only 0-100, no negative value?