/uHexLib

Arduino (and standard C) tiny and cross-device compatible hexadecimal coding/decoding library

Primary LanguageC++GNU Lesser General Public License v3.0LGPL-3.0

Arduino (and standard C) tiny and cross-device compatible hexadecimal coding/decoding library.

What is this repository for?

Standard C library to encode and decode bytes to hexadecimal.

Supports any microcontroller.

Usage

You have this new type used as return type of encoding, which has 2 bytes, named 'a' and 'b': - uHexLib2Bytes: { uint8_t a; uint8_t b; }

You have uHexLib class with following static methods:

- **uHexLib2Bytes uHexLib::encode(const char);** : Given one char it encodes it to 2 base64 chars and returns the struct
- **char uHexLib::decode(const char inA, const char inB);** : Given two base64 chars it decodes and returns them as 1 char

- **uint16_t uHexLib::encode(const char in[], char out[]);** : Given one char it encodes it to 2 base64 chars and returns the struct
- **uint16_t  uHexLib::decode(const char in[], char out[]);** : Given two base64 chars it decodes and returns them as 1 char

How do I get set up?

You can get it from Arduino libraries directly, searching by uHexLib.

For manual installation:

Example

Included on example folder, available on Arduino IDE.

Who do I talk to?

Contribute

Any code contribution, report or comment are always welcome. Don't hesitate to use GitHub for that.

Thanks for your support.

Contributors hall of fame: https://www.foroelectro.net/hall-of-fame-f32/contributors-contribuyentes-t271.html