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!
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
Post a Comment