Week 1 Arduino newbie:)
I'm decoding IR codes using Ken Sherriff's IRLibrary but I'm having problems in checking for particular codes
This code
...
unsigned long codeValue;
...
(use lib to get a value)
...
Serial.println(codeValue);
String sCodeValue = String(2576,HEX);
Serial.println(sCodeValue);
sCodeValue = String(codeValue,HEX);
Serial.println(sCodeValue);
produces
2576
a10
2576
whereas I was expecting/hoping for
2576
a10
a10
Can someone tell me what language error I've made please?
(Basically I'd like to compare sCodeValue against a set of values but I have those values in Hex so I don't want to have to translate them all to decimal)