string to unsigned short comparesion

31 Mar 2012

Hello i am reading analoge value using read.U16() which is a 'unsigned short' and my set point is given through serial port which is i read as scanf stetment which is becomes a 'string' i want to glow an led if my analog in value is grater than set point then how we do it