// SPDX-FileCopyrightText: 2020 Phillip Burgess for Adafruit Industries // // SPDX-License-Identifier: MIT #if 0 // Change to 1 to enable this code (must enable ONE user*.cpp only!) // PIR motion sensor on pin 3 makes eyes open when motion is detected. #include "globals.h" #define PIR_PIN 3 // PIR sensor on D3 connector (between MIC & BAT) static uint8_t priorState; void user_setup(void) { pinMode(PIR_PIN, INPUT); priorState = digitalRead(PIR_PIN); for(uint8_t e=0; e