So vielleicht:

Code:
#define tastentoleranz 5
int adc2;
// 180 ,200, 230, 280, 300,370, 440, ... 920

if(adc2 < (180-tastentoleranz))
{
// Taste 1
}
else if(adc2 < (200-tastentoleranz))
{
// Taste 2
}
else if(adc2 < (230-tastentoleranz))
{
}
else if(adc2 < (280-tastentoleranz))
{
}
else if(adc2 < (300-tastentoleranz))
{
}
// ...
else if(adc2 < (920-tastentoleranz))
{
// Taste x
}