Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naguissa/uhexlib
Arduino (and standard C) tiny and cross-device compatible hexadecimal coding/decoding library
https://github.com/naguissa/uhexlib
arduino arduino-library cpp hexadecimal hexadecimal-converter
Last synced: about 7 hours ago
JSON representation
Arduino (and standard C) tiny and cross-device compatible hexadecimal coding/decoding library
- Host: GitHub
- URL: https://github.com/naguissa/uhexlib
- Owner: Naguissa
- License: lgpl-3.0
- Created: 2024-08-01T13:53:58.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-09T14:16:14.000Z (3 months ago)
- Last Synced: 2024-08-09T15:49:38.805Z (3 months ago)
- Topics: arduino, arduino-library, cpp, hexadecimal, hexadecimal-converter
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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:
* Get the ZIP from releases link: https://github.com/Naguissa/uHexLib/releases
* Rename to uHexLib.zip
* Install library on Arduino## Example
Included on example folder, available on Arduino IDE.
## Who do I talk to?
* [Naguissa](https://github.com/Naguissa)
* https://www.foroelectro.net## Contribute
Any code contribution, report or comment are always welcome. Don't hesitate to use GitHub for that.
* You can sponsor this project using GitHub's Sponsor button: https://github.com/Naguissa/uHexLib
* You can make a donation via PayPal: https://paypal.me/foroelectroThanks for your support.
Contributors hall of fame: https://www.foroelectro.net/hall-of-fame-f32/contributors-contribuyentes-t271.html