Skip to content

Instantly share code, notes, and snippets.

@f0cus10
Created February 4, 2018 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save f0cus10/fdc865a0348024ae7b1b7a12bde82a93 to your computer and use it in GitHub Desktop.
Save f0cus10/fdc865a0348024ae7b1b7a12bde82a93 to your computer and use it in GitHub Desktop.
class HeartBeat {
public:
setHeartBeat(const unsigned int& heartRate);
getHeartBea() const;
getTime() const;
private:
int hr;
//stamp will overflow after 50 days
unsigned long stamp;
};
//Will write a motor class for later
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment