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 "wifi.h" | |
#include <ESP8266WiFi.h> | |
#include "TaskScheduler.h" | |
Task * wifi_setup(Scheduler &s) { | |
WiFi.mode(WIFI_STA); | |
WiFi.setAutoReconnect(true); | |
WiFi.begin(WIFI_SSID, WIFI_PASS); |
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 "Arduino.h" | |
#include "common/common.h" | |
void setup() { | |
leds_setup(); | |
Task wifi_task = wifi_setup(ts); | |
} | |
void loop() { |
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 "Arduino.h" | |
#include "common/common.h" | |
#include "EEPROM.h" | |
Task* wifi_task = nullptr; // monitor and reconnect wifi | |
Task* led_task = nullptr; // move leds toward target color | |
CRGB color; // target color | |
void setup() { |
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 "rgb_controller_mode.h" | |
#include "rgb_controller_mode_straight.h" | |
#include "FastLED.h" | |
RGBControllerModeStraight::RGBControllerModeStraight(RGBController* controller, uint8_t r, uint8_t g, uint8_t b) { | |
RGBControllerMode::RGBControllerMode(&controller); | |
_color = CRGB(r, g, b); | |
}; |
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 "registry.h" | |
template<typename Type> | |
void Registry::registerType(){ | |
registry[Type::name] = [](){return std::unique_ptr<RegistryType>(new Type);}; | |
}; | |
std::unique_ptr<RegistryType> Registry::create(const std::string &name){ |
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
--- | |
version: "3.7" | |
services: | |
znc: | |
image: znc | |
user: "1100001:1100001" | |
volumes: | |
- znc-data:/znc-data | |
networks: |
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
--- | |
version: "3.7" | |
services: | |
nginx: | |
image: nginx | |
volumes: | |
- nginx-etc:/etc/nginx:ro | |
- nginx-www:/var/www:ro | |
- certbot-etc:/etc/letsencrypt:ro |
OlderNewer