Skip to content

Arduino/Energia AM2320 I2C library with integer math

Notifications You must be signed in to change notification settings

z3q/AM2320-integer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AM2320 sensor library for Arduino/Launchpad

Original Arduino AM2320 I2C temperature/humidity library: https://github.com/Ten04031977/AM2320-master

The difference is usage of integer math. Temperature is multiplied by 10 and can be printed using code like:

lcd.print(th.t / 10);
lcd.print(".");
lcd.print(abs(th.t) % 10);

Nobody cares about relative humidity % fraction, so it is simply rounded (truncated).

About

Arduino/Energia AM2320 I2C library with integer math

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%