void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
int percent = 70;
int COMPARE_MATCH_VALUE = ((float) percent / 100) * 255;
//int COMPARE_MATCH_VALUE_INVERTED = 255 - COMPARE_MATCH_VALUE;
int COMPARE_MATCH_VALUE = ((float) percent / 100) * 255;
Serial.println(COMPARE_MATCH_VALUE);
//Serial.println(COMPARE_MATCH_VALUE_INVERTED);
}
void loop() {
// put your main code here, to run repeatedly:
}