This file contains 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
/*BLUETOOTH DRIVER FUNCTIONS*/ | |
#define BT_DEVICE_SCAN_MAX_DEVICES 5 /*(64 x 5) 320 bytes*/ | |
#define BT_ADDR_BYTES 18 /*'xx:xx:xx:xx:xx:xx\0'*/ | |
#define BT_NAME_BYTES 32 /*device name*/ | |
#define BT_PIN_BYTES 5 /*0000\0*/ | |
#define BT_RSSI_BYTES 5 /*0000\0*/ | |
struct bluetooth_device | |
{ | |
char address[BT_ADDR_BYTES]; |
This file contains 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 <TimeLib.h> | |
//DST epoch indexed by offset from 2020 [{Begin}, {End}] | |
//2nd sunday in march to 1st sunday in november DST = TRUE | |
#define DST_TIME(mon,day,yr,hr,min) {0, min, hr, 0, day, mon, CalendarYrToTm(yr)} | |
const tmElements_t DST_TIME_START[16] PROGMEM = { | |
DST_TIME(3,8,2020, 2,0), | |
DST_TIME(3,14,2021, 2,0), | |
DST_TIME(3,13,2022, 2,0), | |
DST_TIME(3,12,2023, 2,0), |
This file contains 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
/* | |
* lmarshal.c | |
* A Lua library for serializing and deserializing Lua values | |
* Richard Hundt <richardhundt@gmail.com> | |
* | |
* License: MIT | |
* | |
* Copyright (c) 2010 Richard Hundt | |
* Copyright (c) 2019 William Wilgus -- rewrite with pagefile storage | |
* |