Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between timed and externally triggered sensors. #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rikba
Copy link
Contributor

@rikba rikba commented Jan 22, 2020

This PR separates the Sensor class into a base Sensor class and a TimerSensor class. This allows adding sensors that are purely interrupt driven and don't need a timer member.

TimedSensor

@rikba rikba marked this pull request as ready for review January 22, 2020 12:24
@rikba rikba mentioned this pull request Jan 22, 2020
@rikba rikba requested a review from nrjl January 22, 2020 17:13
Copy link
Contributor

@floriantschopp floriantschopp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@floriantschopp floriantschopp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for that nice differentiation. What sensor did you have in mind?

@@ -1,74 +1,74 @@
#include "Arduino.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened to this diff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants