Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • say user gives 78320113 78 = 4E in hex and so on 32 = 20 01 = 01 13 = 0D one buffer will take this as input. it will check 1st 2 and last the 4th.if match found then Serial.println(the 3rd element ie. theresult will be 01 at serial monitor) Hopefully I am clear Commented Nov 17, 2014 at 19:29
  • The users still enters eight characters and not four. Either you take my proposal and convert the hex codes to ASCII characters or you read in eight bytes and compare six of them with their ASCII equivalent. However i'm not shure if we're still on topic for this site. Commented Nov 17, 2014 at 19:47
  • also break could help stop checking if it was != Commented Nov 18, 2014 at 10:57
  • And e.g. FF in decimal is 255 so that is three characters Commented Nov 19, 2014 at 8:55