Literal conversion from short or byte to char


hello,

what i'm trying pretty simple, i've tried , can't find solution.

first step:
i have short variable value 40 (example) , want convert char (with ascii code 40).

second step:
the second step concatenate various results send via serial (i need send result in form of string, since ii'm using library). step easy, without first step cannot sucess.

many thanks!

quote
i have short variable value 40 (example) , want convert char (with ascii code 40)

any value 0 127 can bed directly assigned char without problem, whether, short or long.
(ascii 40 '('  )


Arduino Forum > Using Arduino > Programming Questions > Literal conversion from short or byte to char


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support