Advertisement
emcniece

nightshade-energyshield.h

Nov 16th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. /*
  2.    NS_energyShield - Library for interfacing with NightShade Electronic's energyShield, rev 8.
  3.    Created by Aaron D. Liebold on August 8, 2014.
  4.    Released into the public domain.
  5.    
  6.    v1.0
  7. */
  8.  
  9. #ifndef NS_energyShield_h
  10. #define NS_energyShield_h
  11.  
  12. //#include "Arduino.h"
  13.  
  14. class NS_energyShield
  15. {
  16.     public:
  17.         NS_energyShield();
  18.         void address(char address);
  19.         int voltage();
  20.         int temperature();
  21.         int current();
  22.         int percent();
  23.         int Vadp(int pin);
  24.     private:
  25.         char _address;
  26. };
  27.  
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement