Char To Unsigned
File:TArduinoCharToUnsigned.png
Summary
Use this component to convert an incoming signed character to its unsigned equivalent, expanding its range from -128–127 to 0–255.
Description
The **Char To Unsigned** component transforms a signed 8-bit character (char) into its unsigned 8-bit equivalent (unsigned char). This conversion is useful when you need to handle characters as raw byte values, especially when dealing with binary data or interfacing with hardware that expects unsigned byte inputs.
- **In (char)**: Receives the incoming signed character to be converted. - **Out (Unsigned)**: Outputs the unsigned byte equivalent of the input character.
This component is particularly useful in scenarios where you need to ensure that character data is treated as unsigned, such as when sending data over communication protocols that require byte values.
Diagram:
Categories
Category Text - Text components category