- Fri Sep 11, 2009 6:10 pm
#80865
Hi everyone, I´m working on a project using a MSP430 device, and I started to love it, but the thing is I'm not proficient in C language, what I'm trying to do is what in BASIC now as the ASC() function
I want to show a Captured Byte in the LCD as an Hex value, and need to create the string with the Hex value of that char to show it on the LCD.
this is what I would do in BASIC
Function ShowValue (myvalue as byte)
dim mystr as string
mystr=Str(Asc(myvalue))
LCDout(mystr)
End Function
I already have the LCDout function working, so I only need the conversion.
any ideas?
thanks
I want to show a Captured Byte in the LCD as an Hex value, and need to create the string with the Hex value of that char to show it on the LCD.
this is what I would do in BASIC
Function ShowValue (myvalue as byte)
dim mystr as string
mystr=Str(Asc(myvalue))
LCDout(mystr)
End Function
I already have the LCDout function working, so I only need the conversion.
any ideas?
thanks