int16 IntTemp = (int16)rawTemperature << 8 | rawTemperature;
sprintf(Buffer,""temp is: %d",IntTemp);
Do not forget to allow float formatting in Project Settings and to increase heap size to 0x200
thank you so much bob , works great!
your solution works without :
"Do not forget to allow float formatting in Project Settings and to increase heap size to 0x200"
what do you mean ?
In case you will send float numbers via UART
Creator -> Project -> Build Settings -> Linker -> use newlib-nano float formatting
Creator -> .cydwr view -> System -> Heap size 0x200
thank you bob!
i learn so much from you.
You are always welcome!