Skip to content

Instantly share code, notes, and snippets.

View alex-dinh's full-sized avatar

Alex Dinh alex-dinh

View GitHub Profile
exports.at = at;
function at(hours, minutes) {
let hr = hours;
let min = 0;
if (minutes) {
hr += Math.floor(minutes / 60);
min = minutes;
}
#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;