Skip to content

SheharyarSMAdil/DataConversionArduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DATA CONVERSION

Arduino Library for Data Conversion of Hex to Float and float to Hex as IEEE754 Standards.

Example snippet

A minimal usage only needs

  • the constructor, the hexToFloat() or floatToHex functions.
#include "DataConversion.h"
...

uint16_t higher, lower;

DataConversion DC;
  ...
 float num=DC.hexToFloat(0x41, 0xCC, 0x8f, 0x5c);
 float num2=DC.hexToFloat(0x41CC, 0x8f5c);
 DC.floatToHex(higher, lower, 25.57);

Operational

See examples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages