Die Quellcodes zu den Beispielen aus der Youtube Serie findet ihr hier.
Die verwendete Hardware ist ein Wemos D1 Mini, welcher in einem Lichterbogen eingebaut ist.
Pin D1 = LEDs Lichterbogen
Pin D4 = interne blaue Led
Pin D5 = Taster (Input Pullup Konfiguration erforderlich)
Pin A0 = Potentiometer
2 Relais (Digital-Ausgänge) schalten:
/* * Example for how to use SinricPro Switch device: * - setup a switch device * - handle request using callback (turn on/off builtin led indicating device power state) * - send event to sinricPro server (flash button is used to turn on/off device manually) * * If you encounter any issues: * - check the readme.md at https://github.com/sinricpro/esp8266-esp32-sdk/blob/master/README.md * - ensure all dependent libraries are installed * - see https://github.com/sinricpro/esp8266-esp32-sdk/blob/master/README.md#arduinoide * - see https://github.com/sinricpro/esp8266-esp32-sdk/blob/master/README.md#dependencies * - open serial monitor and check whats happening * - check full user documentation at https://sinricpro.github.io/esp8266-esp32-sdk * - visit https://github.com/sinricpro/esp8266-esp32-sdk/issues and check for existing issues or open a new one** erweitert von Daniel -> 06.01.2021 */