Arduino-Hex-Decimal-Conversion
Arduino-Hex-Decimal-Conversion copied to clipboard
Negative values
This function isn't work for negative values. HEX (Positive) 0c 58 = okay > 3160 HEX (Negative) fa 62 = wrong
For someone who need correct solution for Arduino 👍 Just use 1 line of my code instead this repository :)
void setup() { Serial.begin(9600); }
void loop() { signed int answer = strtol("YOUR HEX HERE", NULL, 16); Serial.println(answer); delay(1000); }
Oh wow, I didn't realize that function existed. Thank you for posting this @maincraft-io