➜ potresti usare due funzioni affini
int specificaMap(int valore) { // valore nell'intervallo [0, 1023] ➜ [0,100]
if (valore >= 0 && valore <= 767) return map(valore, 0, 767, 0, 75); // 767 = 75% di 1023
else if (valore > 767 && valore <= 1023) return map(valore, 767, 1023, 76, 100);
return -1; // errore
}