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
| exports.at = at; | |
| function at(hours, minutes) { | |
| let hr = hours; | |
| let min = 0; | |
| if (minutes) { | |
| hr += Math.floor(minutes / 60); | |
| min = minutes; | |
| } |
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
| #include <Wire.h> | |
| #include <Adafruit_MMA8451.h> | |
| #include <Adafruit_Sensor.h> | |
| #include <SoftwareSerial.h> | |
| #include <DFPlayer_Mini_Mp3.h> | |
| Adafruit_MMA8451 mma = Adafruit_MMA8451(); | |
| SoftwareSerial mySerial(10, 11); // RX, TX | |
| const int ledPin = 6; |