Skip to content

Instantly share code, notes, and snippets.

View buelowp's full-sized avatar

Peter Buelow buelowp

View GitHub Profile
@buelowp
buelowp / scheduler.cpp
Created April 18, 2018 12:27
My suggested scheduling algorithm
void createTimerList()
{
SomeSortedListContainer<qint64> sortedList;
while (hasSchedulerItem) {
QDateTime now = QDateTime::currentDateTime();
QDate d(year, month, day); // From the JSON
QTime t(hour, minute, second); // From the JSON
QDateTime expires(d, t);
@buelowp
buelowp / gist:c3c801b1223e29ae3f599d2760417db3
Last active October 7, 2016 18:06
Hue Direction Issues
class {
private:
CHSV candles[NUM_LEDS];
uint8_t m_varianceDirection;
uint8_t m_hueDirection;
uint8_t m_hueChangeLikely;
uint8_t m_varChangeLikely;
uint8_t m_hueTargetLow;
uint8_t m_hueTargetHigh;
}
Building firmware for Production Photon, platform ID: 6, product ID: 6
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./communication
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./hal
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./platform
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./services
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./wiring