Created
April 12, 2017 19:13
-
-
Save dastels/6a8d3584fcfe6a53740502691f789007 to your computer and use it in GitHub Desktop.
medium test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void initialize_sensors(isr motion_isr) | |
{ | |
if (has_motion()) { | |
pinMode(MOTION_PIN, INPUT); | |
attachInterrupt(digitalPinToInterrupt(MOTION_PIN), motion_isr, CHANGE); | |
} | |
if (has_prox()) { | |
prox_sensor.init(); | |
prox_sensor.setTimeout(500); | |
} | |
if (has_si7021()) { | |
si7021 = Adafruit_Si7021(); | |
si7021.begin(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment