Enigmalight / Ambilight für 4K-Boxen (ARM)

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Hallo,

      nachdem ich nun mehrere Varianten von ELight ausprobiert habe (Arduino Nano, Arduino Mega und NodeMCU) bin ich kurz vorm verzweifeln, bekomme es einfach nicht hin, dass sich Enigmalight so verhält wie es soll (bei mir blinken die LEDs nur in verschiedenen Farben).
      Vielleicht könnte mir ja jemand helfen und über die config schauen!?

      WS2812B mit NodeMCU

      enigmalight.conf

      Spoiler anzeigen

      [global]
      interface 127.0.0.1
      port19333

      [device]
      nameambilight
      output 192.168.1.92
      typeudp
      port19446
      interval 20000
      prefix41 64 61 00 6e 3b
      channels 333
      rate115200
      debugoff

      [color]
      namered
      rgbFF0000
      gamma0.91
      adjust1.0
      blacklevel 0.0

      [color]
      namegreen
      rgb00FF00
      gamma0.86
      adjust0.96
      blacklevel 0.0

      [color]
      nameblue
      rgb0000FF
      gamma0.95
      adjust0.80
      blacklevel 0.0



      [light]
      position bottom
      name 1XX
      color red ambilight 1
      color green ambilight 2
      color blue ambilight 3
      hscan 97.3 100.0
      vscan 100.0 100


      [light]
      position bottom
      name 2XX
      color red ambilight 4
      color green ambilight 5
      color blue ambilight 6
      hscan 94.59 97.3
      vscan 100.0 100


      [light]
      position bottom
      name 3XX
      color red ambilight 7
      color green ambilight 8
      color blue ambilight 9
      hscan 91.89 94.59
      vscan 100.0 100


      [light]
      position bottom
      name 4XX
      color red ambilight 10
      color green ambilight 11
      color blue ambilight 12
      hscan 89.19 91.89
      vscan 100.0 100


      [light]
      position bottom
      name 5XX
      color red ambilight 13
      color green ambilight 14
      color blue ambilight 15
      hscan 86.49 89.19
      vscan 100.0 100


      [light]
      position bottom
      name 6XX
      color red ambilight 16
      color green ambilight 17
      color blue ambilight 18
      hscan 83.78 86.49
      vscan 100.0 100


      [light]
      position bottom
      name 7XX
      color red ambilight 19
      color green ambilight 20
      color blue ambilight 21
      hscan 81.08 83.78
      vscan 100.0 100


      [light]
      position bottom
      name 8XX
      color red ambilight 22
      color green ambilight 23
      color blue ambilight 24
      hscan 78.38 81.08
      vscan 100.0 100


      [light]
      position bottom
      name 9XX
      color red ambilight 25
      color green ambilight 26
      color blue ambilight 27
      hscan 75.68 78.38
      vscan 100.0 100


      [light]
      position bottom
      name 10X
      color red ambilight 28
      color green ambilight 29
      color blue ambilight 30
      hscan 72.97 75.68
      vscan 100.0 100


      [light]
      position bottom
      name 11X
      color red ambilight 31
      color green ambilight 32
      color blue ambilight 33
      hscan 70.27 72.97
      vscan 100.0 100


      [light]
      position bottom
      name 12X
      color red ambilight 34
      color green ambilight 35
      color blue ambilight 36
      hscan 67.57 70.27
      vscan 100.0 100


      [light]
      position bottom
      name 13X
      color red ambilight 37
      color green ambilight 38
      color blue ambilight 39
      hscan 64.86 67.57
      vscan 100.0 100


      [light]
      position bottom
      name 14X
      color red ambilight 40
      color green ambilight 41
      color blue ambilight 42
      hscan 62.16 64.86
      vscan 100.0 100


      [light]
      position bottom
      name 15X
      color red ambilight 43
      color green ambilight 44
      color blue ambilight 45
      hscan 59.46 62.16
      vscan 100.0 100


      [light]
      position bottom
      name 16X
      color red ambilight 46
      color green ambilight 47
      color blue ambilight 48
      hscan 56.76 59.46
      vscan 100.0 100


      [light]
      position bottom
      name 17X
      color red ambilight 49
      color green ambilight 50
      color blue ambilight 51
      hscan 54.05 56.76
      vscan 100.0 100


      [light]
      position bottom
      name 18X
      color red ambilight 52
      color green ambilight 53
      color blue ambilight 54
      hscan 51.35 54.05
      vscan 100.0 100


      [light]
      position bottom
      name 19X
      color red ambilight 55
      color green ambilight 56
      color blue ambilight 57
      hscan 48.65 51.35
      vscan 100.0 100


      [light]
      position bottom
      name 20X
      color red ambilight 58
      color green ambilight 59
      color blue ambilight 60
      hscan 45.95 48.65
      vscan 100.0 100


      [light]
      position bottom
      name 21X
      color red ambilight 61
      color green ambilight 62
      color blue ambilight 63
      hscan 43.24 45.95
      vscan 100.0 100


      [light]
      position bottom
      name 22X
      color red ambilight 64
      color green ambilight 65
      color blue ambilight 66
      hscan 40.54 43.24
      vscan 100.0 100


      [light]
      position bottom
      name 23X
      color red ambilight 67
      color green ambilight 68
      color blue ambilight 69
      hscan 37.84 40.54
      vscan 100.0 100


      [light]
      position bottom
      name 24X
      color red ambilight 70
      color green ambilight 71
      color blue ambilight 72
      hscan 35.14 37.84
      vscan 100.0 100


      [light]
      position bottom
      name 25X
      color red ambilight 73
      color green ambilight 74
      color blue ambilight 75
      hscan 32.43 35.14
      vscan 100.0 100


      [light]
      position bottom
      name 26X
      color red ambilight 76
      color green ambilight 77
      color blue ambilight 78
      hscan 29.73 32.43
      vscan 100.0 100


      [light]
      position bottom
      name 27X
      color red ambilight 79
      color green ambilight 80
      color blue ambilight 81
      hscan 27.03 29.73
      vscan 100.0 100


      [light]
      position bottom
      name 28X
      color red ambilight 82
      color green ambilight 83
      color blue ambilight 84
      hscan 24.32 27.03
      vscan 100.0 100


      [light]
      position bottom
      name 29X
      color red ambilight 85
      color green ambilight 86
      color blue ambilight 87
      hscan 21.62 24.32
      vscan 100.0 100


      [light]
      position bottom
      name 30X
      color red ambilight 88
      color green ambilight 89
      color blue ambilight 90
      hscan 18.92 21.62
      vscan 100.0 100


      [light]
      position bottom
      name 31X
      color red ambilight 91
      color green ambilight 92
      color blue ambilight 93
      hscan 16.22 18.92
      vscan 100.0 100


      [light]
      position bottom
      name 32X
      color red ambilight 94
      color green ambilight 95
      color blue ambilight 96
      hscan 13.51 16.22
      vscan 100.0 100


      [light]
      position bottom
      name 33X
      color red ambilight 97
      color green ambilight 98
      color blue ambilight 99
      hscan 10.81 13.51
      vscan 100.0 100


      [light]
      position bottom
      name 34X
      color red ambilight 100
      color green ambilight 101
      color blue ambilight 102
      hscan 8.11 10.81
      vscan 100.0 100


      [light]
      position bottom
      name 35X
      color red ambilight 103
      color green ambilight 104
      color blue ambilight 105
      hscan 5.41 8.11
      vscan 100.0 100


      [light]
      position bottom
      name 36X
      color red ambilight 106
      color green ambilight 107
      color blue ambilight 108
      hscan 2.7 5.41
      vscan 100.0 100


      [light]
      position bottom
      name 37X
      color red ambilight 109
      color green ambilight 110
      color blue ambilight 111
      hscan 0.0 2.7
      vscan 100.0 100


      [light]
      position left
      name 38X
      color red ambilight 112
      color green ambilight 113
      color blue ambilight 114
      hscan 0 0
      vscan 94.74 100.0


      [light]
      position left
      name 39X
      color red ambilight 115
      color green ambilight 116
      color blue ambilight 117
      hscan 0 0
      vscan 89.47 94.74


      [light]
      position left
      name 40X
      color red ambilight 118
      color green ambilight 119
      color blue ambilight 120
      hscan 0 0
      vscan 84.21 89.47


      [light]
      position left
      name 41X
      color red ambilight 121
      color green ambilight 122
      color blue ambilight 123
      hscan 0 0
      vscan 78.95 84.21


      [light]
      position left
      name 42X
      color red ambilight 124
      color green ambilight 125
      color blue ambilight 126
      hscan 0 0
      vscan 73.68 78.95


      [light]
      position left
      name 43X
      color red ambilight 127
      color green ambilight 128
      color blue ambilight 129
      hscan 0 0
      vscan 68.42 73.68


      [light]
      position left
      name 44X
      color red ambilight 130
      color green ambilight 131
      color blue ambilight 132
      hscan 0 0
      vscan 63.16 68.42


      [light]
      position left
      name 45X
      color red ambilight 133
      color green ambilight 134
      color blue ambilight 135
      hscan 0 0
      vscan 57.89 63.16


      [light]
      position left
      name 46X
      color red ambilight 136
      color green ambilight 137
      color blue ambilight 138
      hscan 0 0
      vscan 52.63 57.89


      [light]
      position left
      name 47X
      color red ambilight 139
      color green ambilight 140
      color blue ambilight 141
      hscan 0 0
      vscan 47.37 52.63


      [light]
      position left
      name 48X
      color red ambilight 142
      color green ambilight 143
      color blue ambilight 144
      hscan 0 0
      vscan 42.11 47.37


      [light]
      position left
      name 49X
      color red ambilight 145
      color green ambilight 146
      color blue ambilight 147
      hscan 0 0
      vscan 36.84 42.11


      [light]
      position left
      name 50X
      color red ambilight 148
      color green ambilight 149
      color blue ambilight 150
      hscan 0 0
      vscan 31.58 36.84


      [light]
      position left
      name 51X
      color red ambilight 151
      color green ambilight 152
      color blue ambilight 153
      hscan 0 0
      vscan 26.32 31.58


      [light]
      position left
      name 52X
      color red ambilight 154
      color green ambilight 155
      color blue ambilight 156
      hscan 0 0
      vscan 21.05 26.32


      [light]
      position left
      name 53X
      color red ambilight 157
      color green ambilight 158
      color blue ambilight 159
      hscan 0 0
      vscan 15.79 21.05


      [light]
      position left
      name 54X
      color red ambilight 160
      color green ambilight 161
      color blue ambilight 162
      hscan 0 0
      vscan 10.53 15.79


      [light]
      position left
      name 55X
      color red ambilight 163
      color green ambilight 164
      color blue ambilight 165
      hscan 0 0
      vscan 5.26 10.53


      [light]
      position left
      name 56X
      color red ambilight 166
      color green ambilight 167
      color blue ambilight 168
      hscan 0 0
      vscan 0.0 5.26


      [light]
      position top
      name 57X
      color red ambilight 169
      color green ambilight 170
      color blue ambilight 171
      hscan 0.0 2.78
      vscan 0 100


      [light]
      position top
      name 58X
      color red ambilight 172
      color green ambilight 173
      color blue ambilight 174
      hscan 2.78 5.56
      vscan 0 100


      [light]
      position top
      name 59X
      color red ambilight 175
      color green ambilight 176
      color blue ambilight 177
      hscan 5.56 8.33
      vscan 0 100


      [light]
      position top
      name 60X
      color red ambilight 178
      color green ambilight 179
      color blue ambilight 180
      hscan 8.33 11.11
      vscan 0 100


      [light]
      position top
      name 61X
      color red ambilight 181
      color green ambilight 182
      color blue ambilight 183
      hscan 11.11 13.89
      vscan 0 100


      [light]
      position top
      name 62X
      color red ambilight 184
      color green ambilight 185
      color blue ambilight 186
      hscan 13.89 16.67
      vscan 0 100


      [light]
      position top
      name 63X
      color red ambilight 187
      color green ambilight 188
      color blue ambilight 189
      hscan 16.67 19.44
      vscan 0 100


      [light]
      position top
      name 64X
      color red ambilight 190
      color green ambilight 191
      color blue ambilight 192
      hscan 19.44 22.22
      vscan 0 100


      [light]
      position top
      name 65X
      color red ambilight 193
      color green ambilight 194
      color blue ambilight 195
      hscan 22.22 25.0
      vscan 0 100


      [light]
      position top
      name 66X
      color red ambilight 196
      color green ambilight 197
      color blue ambilight 198
      hscan 25.0 27.78
      vscan 0 100


      [light]
      position top
      name 67X
      color red ambilight 199
      color green ambilight 200
      color blue ambilight 201
      hscan 27.78 30.56
      vscan 0 100


      [light]
      position top
      name 68X
      color red ambilight 202
      color green ambilight 203
      color blue ambilight 204
      hscan 30.56 33.33
      vscan 0 100


      [light]
      position top
      name 69X
      color red ambilight 205
      color green ambilight 206
      color blue ambilight 207
      hscan 33.33 36.11
      vscan 0 100


      [light]
      position top
      name 70X
      color red ambilight 208
      color green ambilight 209
      color blue ambilight 210
      hscan 36.11 38.89
      vscan 0 100


      [light]
      position top
      name 71X
      color red ambilight 211
      color green ambilight 212
      color blue ambilight 213
      hscan 38.89 41.67
      vscan 0 100


      [light]
      position top
      name 72X
      color red ambilight 214
      color green ambilight 215
      color blue ambilight 216
      hscan 41.67 44.44
      vscan 0 100


      [light]
      position top
      name 73X
      color red ambilight 217
      color green ambilight 218
      color blue ambilight 219
      hscan 44.44 47.22
      vscan 0 100


      [light]
      position top
      name 74X
      color red ambilight 220
      color green ambilight 221
      color blue ambilight 222
      hscan 47.22 50.0
      vscan 0 100


      [light]
      position top
      name 75X
      color red ambilight 223
      color green ambilight 224
      color blue ambilight 225
      hscan 50.0 52.78
      vscan 0 100


      [light]
      position top
      name 76X
      color red ambilight 226
      color green ambilight 227
      color blue ambilight 228
      hscan 52.78 55.56
      vscan 0 100


      [light]
      position top
      name 77X
      color red ambilight 229
      color green ambilight 230
      color blue ambilight 231
      hscan 55.56 58.33
      vscan 0 100


      [light]
      position top
      name 78X
      color red ambilight 232
      color green ambilight 233
      color blue ambilight 234
      hscan 58.33 61.11
      vscan 0 100


      [light]
      position top
      name 79X
      color red ambilight 235
      color green ambilight 236
      color blue ambilight 237
      hscan 61.11 63.89
      vscan 0 100


      [light]
      position top
      name 80X
      color red ambilight 238
      color green ambilight 239
      color blue ambilight 240
      hscan 63.89 66.67
      vscan 0 100


      [light]
      position top
      name 81X
      color red ambilight 241
      color green ambilight 242
      color blue ambilight 243
      hscan 66.67 69.44
      vscan 0 100


      [light]
      position top
      name 82X
      color red ambilight 244
      color green ambilight 245
      color blue ambilight 246
      hscan 69.44 72.22
      vscan 0 100


      [light]
      position top
      name 83X
      color red ambilight 247
      color green ambilight 248
      color blue ambilight 249
      hscan 72.22 75.0
      vscan 0 100


      [light]
      position top
      name 84X
      color red ambilight 250
      color green ambilight 251
      color blue ambilight 252
      hscan 75.0 77.78
      vscan 0 100


      [light]
      position top
      name 85X
      color red ambilight 253
      color green ambilight 254
      color blue ambilight 255
      hscan 77.78 80.56
      vscan 0 100


      [light]
      position top
      name 86X
      color red ambilight 256
      color green ambilight 257
      color blue ambilight 258
      hscan 80.56 83.33
      vscan 0 100


      [light]
      position top
      name 87X
      color red ambilight 259
      color green ambilight 260
      color blue ambilight 261
      hscan 83.33 86.11
      vscan 0 100


      [light]
      position top
      name 88X
      color red ambilight 262
      color green ambilight 263
      color blue ambilight 264
      hscan 86.11 88.89
      vscan 0 100


      [light]
      position top
      name 89X
      color red ambilight 265
      color green ambilight 266
      color blue ambilight 267
      hscan 88.89 91.67
      vscan 0 100


      [light]
      position top
      name 90X
      color red ambilight 268
      color green ambilight 269
      color blue ambilight 270
      hscan 91.67 94.44
      vscan 0 100


      [light]
      position top
      name 91X
      color red ambilight 271
      color green ambilight 272
      color blue ambilight 273
      hscan 94.44 97.22
      vscan 0 100


      [light]
      position top
      name 92X
      color red ambilight 274
      color green ambilight 275
      color blue ambilight 276
      hscan 97.22 100.0
      vscan 0 100


      [light]
      position right
      name 93X
      color red ambilight 277
      color green ambilight 278
      color blue ambilight 279
      hscan 100.0 100
      vscan 0.0 5.26


      [light]
      position right
      name 94X
      color red ambilight 280
      color green ambilight 281
      color blue ambilight 282
      hscan 100.0 100
      vscan 5.26 10.53


      [light]
      position right
      name 95X
      color red ambilight 283
      color green ambilight 284
      color blue ambilight 285
      hscan 100.0 100
      vscan 10.53 15.79


      [light]
      position right
      name 96X
      color red ambilight 286
      color green ambilight 287
      color blue ambilight 288
      hscan 100.0 100
      vscan 15.79 21.05


      [light]
      position right
      name 97X
      color red ambilight 289
      color green ambilight 290
      color blue ambilight 291
      hscan 100.0 100
      vscan 21.05 26.32


      [light]
      position right
      name 98X
      color red ambilight 292
      color green ambilight 293
      color blue ambilight 294
      hscan 100.0 100
      vscan 26.32 31.58


      [light]
      position right
      name 99X
      color red ambilight 295
      color green ambilight 296
      color blue ambilight 297
      hscan 100.0 100
      vscan 31.58 36.84


      [light]
      position right
      name 100
      color red ambilight 298
      color green ambilight 299
      color blue ambilight 300
      hscan 100.0 100
      vscan 36.84 42.11


      [light]
      position right
      name 101
      color red ambilight 301
      color green ambilight 302
      color blue ambilight 303
      hscan 100.0 100
      vscan 42.11 47.37


      [light]
      position right
      name 102
      color red ambilight 304
      color green ambilight 305
      color blue ambilight 306
      hscan 100.0 100
      vscan 47.37 52.63


      [light]
      position right
      name 103
      color red ambilight 307
      color green ambilight 308
      color blue ambilight 309
      hscan 100.0 100
      vscan 52.63 57.89


      [light]
      position right
      name 104
      color red ambilight 310
      color green ambilight 311
      color blue ambilight 312
      hscan 100.0 100
      vscan 57.89 63.16


      [light]
      position right
      name 105
      color red ambilight 313
      color green ambilight 314
      color blue ambilight 315
      hscan 100.0 100
      vscan 63.16 68.42


      [light]
      position right
      name 106
      color red ambilight 316
      color green ambilight 317
      color blue ambilight 318
      hscan 100.0 100
      vscan 68.42 73.68


      [light]
      position right
      name 107
      color red ambilight 319
      color green ambilight 320
      color blue ambilight 321
      hscan 100.0 100
      vscan 73.68 78.95


      [light]
      position right
      name 108
      color red ambilight 322
      color green ambilight 323
      color blue ambilight 324
      hscan 100.0 100
      vscan 78.95 84.21


      [light]
      position right
      name 109
      color red ambilight 325
      color green ambilight 326
      color blue ambilight 327
      hscan 100.0 100
      vscan 84.21 89.47


      [light]
      position right
      name 110
      color red ambilight 328
      color green ambilight 329
      color blue ambilight 330
      hscan 100.0 100
      vscan 89.47 94.74


      [light]
      position right
      name 111
      color red ambilight 331
      color green ambilight 332
      color blue ambilight 333
      hscan 100.0 100
      vscan 94.74 100.0



      Sketch für den Node hab ich den von DJFlaxi genommen.

      Vielen Dank schon mal.

      Grüße
    • Hallo hallo173
      Hast du die Arduino Software richtig installiert und die FastLED Library am richtigen Ort?
      Was für eine Meldung kommt während und nach dem Aufspielen des Sketches?
      Hänge doch trotzdem mal den Sketch hier an inkl Anzahl LEDs, Startpunkt etc.
    • Hallo turtok,

      danke, dass Du Dich meiner annimmst ;) !

      Also hier mal die Sketche:

      NodeMCU:


      Spoiler anzeigen

      #include <Thread.h>
      #include <ThreadController.h>
      #include "BaseHeader.h"

      #include "EnhancedThread.h"

      #include "LoggerInit.h"

      #include "WrapperWiFi.h"
      #include "WrapperOTA.h"
      #include "WrapperLedControl.h"
      #include "WrapperUdpLed.h"
      #include "WrapperJsonServer.h"

      #include "WrapperWebconfig.h"

      #define LED LED_BUILTIN // LED in NodeMCU at pin GPIO16 (D0) or LED_BUILTIN @Lolin32.
      int ledState = LOW;

      LoggerInit loggerInit;

      WrapperWiFi wifi;
      WrapperOTA ota;

      WrapperLedControl ledStrip;

      WrapperUdpLed udpLed;
      WrapperJsonServer jsonServer;

      #ifdef CONFIG_ENABLE_WEBCONFIG
      WrapperWebconfig webServer;
      #endif

      Mode activeMode;
      boolean autoswitch;

      ThreadController threadController = ThreadController();
      Thread statusThread = Thread();
      EnhancedThread animationThread = EnhancedThread();
      EnhancedThread resetThread = EnhancedThread();

      void statusInfo(void) {
      if (ledState == LOW) {
      ledState = HIGH;
      } else {
      ledState = LOW;
      Log.debug("HEAP=%i", ESP.getFreeHeap());
      }
      digitalWrite(LED, ledState);
      }

      void animationStep() {
      switch (activeMode) {
      case RAINBOW:
      ledStrip.rainbowStep();
      break;
      case FIRE2012:
      ledStrip.fire2012Step();
      break;
      }
      }

      void changeMode(Mode newMode, int interval = 0) {
      if (newMode != activeMode) {
      Log.info("Mode changed to %i", newMode);
      activeMode = newMode;
      if (!autoswitch)
      udpLed.stop();
      switch (activeMode) {
      case OFF:
      ledStrip.clear();
      ledStrip.show();
      break;
      case STATIC_COLOR:
      break;
      case RAINBOW:
      if (interval == 0)
      interval = 500;
      animationThread.setInterval(interval);
      break;
      case FIRE2012:
      if (interval == 0)
      interval = 16;
      animationThread.setInterval(interval);
      break;
      case HYPERION_UDP:
      if (!autoswitch)
      udpLed.begin();
      }
      if (interval > 0)
      Log.debug("Interval set to %ims", interval);
      }
      }

      void updateLed(int id, byte r, byte g, byte b) {
      if (activeMode == HYPERION_UDP) {
      Log.verbose("LED %i, r=%i, g=%i, b=%i", id + 1, r, g, b);
      ledStrip.leds[id].setRGB(r, g, b);
      }
      }
      void refreshLeds(void) {
      if (activeMode == HYPERION_UDP) {
      Log.debug("refresh LEDs");
      ledStrip.show();
      if (autoswitch)
      resetThread.reset();
      } else if (autoswitch) {
      changeMode(HYPERION_UDP);
      Log.info("Autoswitch to HYPERION_UDP");
      }
      }

      void ledColorWipe(byte r, byte g, byte b) {
      Log.debug("LED color wipe: r=%i, g=%i, b=%i", r, g, b);
      changeMode(STATIC_COLOR);
      ledStrip.fillSolid(r, g, b);
      }
      void resetMode(void) {
      Log.info("Reset Mode");
      #ifdef CONFIG_ENABLE_WEBCONFIG
      changeMode(static_cast<Mode>(Config::getConfig()->led.idleMode));
      #else
      changeMode(CONFIG_LED_STANDARD_MODE);
      #endif
      resetThread.enabled = false;
      }

      void initConfig(void) {
      #if defined(CONFIG_OVERWRITE_WEBCONFIG) && defined(CONFIG_ENABLE_WEBCONFIG)
      Config::loadStaticConfig();
      #endif

      const char* ssid;
      const char* password;
      const byte* ip;
      const byte* subnet;
      const byte* dns;
      uint16_t jsonServerPort;
      uint16_t udpLedPort;

      #ifdef CONFIG_ENABLE_WEBCONFIG
      //TODO Fallback
      ConfigStruct* cfg = Config::getConfig();
      ssid = cfg->wifi.ssid;
      password = cfg->wifi.password;
      ip = Config::cfg2ip(cfg->wifi.ip);
      subnet = Config::cfg2ip(cfg->wifi.subnet);
      dns = Config::cfg2ip(cfg->wifi.dns);
      jsonServerPort = cfg->ports.jsonServer;
      udpLedPort = cfg->ports.udpLed;
      autoswitch = cfg->led.autoswitch;
      Log.info("CFG=%s", "EEPROM config loaded");
      Config::logConfig();
      #else
      ssid = CONFIG_WIFI_SSID;
      password = CONFIG_WIFI_PASSWORD;
      #ifdef CONFIG_WIFI_STATIC_IP
      ip = CONFIG_WIFI_IP;
      subnet = CONFIG_WIFI_SUBNET;
      dns = CONFIG_WIFI_DNS;
      #else
      const byte empty[4] = {0};
      ip = empty;
      #endif
      jsonServerPort = CONFIG_PORT_JSON_SERVER;
      udpLedPort = CONFIG_PORT_UDP_LED;
      autoswitch = CONFIG_LED_HYPERION_AUTOSWITCH;
      Log.info("CFG=%s", "Static config loaded");
      #endif
      wifi = WrapperWiFi(ssid, password, ip, subnet, dns);
      udpLed = WrapperUdpLed(CONFIG_LED_COUNT, udpLedPort);
      jsonServer = WrapperJsonServer(CONFIG_LED_COUNT, jsonServerPort);
      }

      void handleEvents(void) {
      ota.handle();
      udpLed.handle();
      jsonServer.handle();
      #ifdef CONFIG_ENABLE_WEBCONFIG
      webServer.handle();
      #endif

      threadController.run();
      }

      void setup(void) {
      LoggerInit loggerInit = LoggerInit(115200);
      initConfig();
      ota = WrapperOTA();
      ledStrip = WrapperLedControl();

      statusThread.onRun(statusInfo);
      statusThread.setInterval(5000);
      threadController.add(&statusThread);

      animationThread.onRun(animationStep);
      animationThread.setInterval(1000);
      resetThread.onRun(resetMode);
      #ifdef CONFIG_ENABLE_WEBCONFIG
      resetThread.setInterval(Config::getConfig()->led.timeoutMs);
      #else
      resetThread.setInterval(CONFIG_LED_STANDARD_MODE_TIMEOUT_MS);
      #endif
      resetThread.enabled = false;
      threadController.add(&resetThread);
      ledStrip.begin();
      resetMode();
      animationStep();

      wifi.begin();

      #ifdef CONFIG_ENABLE_WEBCONFIG
      webServer = WrapperWebconfig();
      webServer.begin();
      ota.begin(Config::getConfig()->wifi.hostname);
      #else
      ota.begin(CONFIG_WIFI_HOSTNAME);
      #endif

      if (autoswitch || activeMode == HYPERION_UDP)
      udpLed.begin();
      udpLed.onUpdateLed(updateLed);
      udpLed.onRefreshLeds(refreshLeds);

      jsonServer.begin();
      jsonServer.onLedColorWipe(ledColorWipe);
      jsonServer.onClearCmd(resetMode);
      jsonServer.onEffectChange(changeMode);

      pinMode(LED, OUTPUT); // LED pin as output.
      Log.info("HEAP=%i", ESP.getFreeHeap());
      }

      void loop(void) {
      handleEvents();
      switch (activeMode) {
      case RAINBOW:
      case FIRE2012:
      animationThread.runIfNeeded();
      break;
      case STATIC_COLOR:
      break;
      case HYPERION_UDP:
      break;
      }
      }


      die dazugehörige ConfigStatic.h:

      Spoiler anzeigen

      /*------------------------------------------------*/
      /*Configuration type*/

      //#define CONFIG_ENABLE_WEBCONFIG 1

      //Replaces all values in the webconfig with the ConfigStatic.h values when CONFIG_ENABLE_WEBCONFIG is enabled
      //#define CONFIG_OVERWRITE_WEBCONFIG 1

      /*------------------------------------------------*/
      /*Logging level*/

      #define LOGLEVEL LOG_LEVEL_INFOS
      //#define LOGLEVEL LOG_LEVEL_DEBUG
      //#define LOGLEVEL LOG_LEVEL_VERBOSE

      /*------------------------------------------------*/
      /*Main static configuration*/
      //This cannot be changed via web inteface

      //#define CONFIG_LED_SPI_CHIPSET WS2801 //Comment out for clockless
      #define CONFIG_LED_CLOCKLESS_CHIPSET WS2812B //Comment in for clockless
      //#define FASTLED_ALLOW_INTERRUPTS 0 //Comment in if clockless stripe (ex. WS2812B) is flickering
      //#define CONFIG_LED_PWM 1 //Comment in if PWM Stripe

      #define CONFIG_LED_DATAPIN D5 //Comment out for PWM
      //#define CONFIG_LED_CLOCKPIN D6 //Comment out for clockless / PWM
      //#define CONFIG_LED_PWM_RED D1 //Comment in for PWM
      //#define CONFIG_LED_PWM_GREEN D2 //Comment in for PWM
      //#define CONFIG_LED_PWM_BLUE D3 //Comment in for PWM

      //Pin order, see FastLED doc. NodeMCU should work with FASTLED_ESP8266_RAW_PIN_ORDER
      #define FASTLED_ESP8266_RAW_PIN_ORDER
      //#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
      //#define FASTLED_ESP8266_D1_PIN_ORDER

      #define CONFIG_LED_COLOR_ORDER RGB
      #define CONFIG_LED_COUNT 111

      //OFF, HYPERION_UDP, STATIC_COLOR, RAINBOW, FIRE2012
      #define CONFIG_LED_STANDARD_MODE OFF
      #define CONFIG_LED_HYPERION_AUTOSWITCH true
      #define CONFIG_LED_STANDARD_MODE_TIMEOUT_MS 5000

      /*------------------------------------------------*/
      /*Main configuration*/
      //You can leave it empty and override it via the web interface on port 80
      #define CONFIG_WIFI_SSID "meinWLAN"
      #define CONFIG_WIFI_PASSWORD "meinWLANPAsswort"

      //#define CONFIG_WIFI_STATIC_IP 1
      //const byte CONFIG_WIFI_IP[] = {192, 168, 1, 92};
      //const byte CONFIG_WIFI_SUBNET[] = {255, 255, 255, 0};
      //const byte CONFIG_WIFI_DNS[] = {192, 168, 1, 1};

      #define CONFIG_WIFI_HOSTNAME "Ambilight"

      #define CONFIG_PORT_JSON_SERVER 19444
      #define CONFIG_PORT_UDP_LED 19446


      Sketch Arduino:

      Spoiler anzeigen

      #include "FastLED.h"


      // How many leds in your strip?
      #define NUM_LEDS 111


      // For led chips like Neopixels, which have a data line, ground, and power, you just
      // need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
      // ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
      #define DATA_PIN 6


      #define COLOR_ORDER GRB


      // Adalight sends a "Magic Word" (defined in /etc/boblight.conf) before sending the pixel data
      uint8_t prefix[] = {'A', 'd', 'a'}, hi, lo, chk, i;


      // Baudrate, higher rate allows faster refresh rate and more LEDs (defined in /etc/boblight.conf)
      #define serialRate 115200


      // Define the array of leds
      CRGB leds[NUM_LEDS];


      void setup() {
      FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
      // initial RGB flash
      LEDS.showColor(CRGB(255, 0, 0));
      delay(500);
      LEDS.showColor(CRGB(0, 255, 0));
      delay(500);
      LEDS.showColor(CRGB(0, 0, 255));
      delay(500);
      LEDS.showColor(CRGB(0, 0, 0));
      Serial.begin(serialRate);
      Serial.print("Ada\n"); // Send "Magic Word" string to host


      }


      void loop() {
      // wait for first byte of Magic Word
      for(i = 0; i < sizeof prefix; ++i) {
      waitLoop: while (!Serial.available()) ;;
      // Check next byte in Magic Word
      if(prefix[i] == Serial.read()) continue;
      // otherwise, start over
      i = 0;
      goto waitLoop;
      }
      // Hi, Lo, Checksum
      while (!Serial.available()) ;;
      hi=Serial.read();
      while (!Serial.available()) ;;
      lo=Serial.read();
      while (!Serial.available()) ;;
      chk=Serial.read();
      // if checksum does not match go back to wait
      if (chk != (hi ^ lo ^ 0x55))
      {
      i=0;
      goto waitLoop;
      }
      memset(leds, 0, NUM_LEDS * sizeof(struct CRGB));
      // read the transmission data and set LED values
      for (uint8_t i = 0; i < NUM_LEDS; i++) {
      byte r, g, b;
      while(!Serial.available());
      r = Serial.read();
      while(!Serial.available());
      g = Serial.read();
      while(!Serial.available());
      b = Serial.read();
      leds[i].r = r;
      leds[i].g = g;
      leds[i].b = b;
      }
      // shows new values
      FastLED.show();
      }



      die enigmalight.config für den arduino:

      Spoiler anzeigen

      [global]
      interface 127.0.0.1
      port19333

      [device]
      nameambilight
      output /dev/ttyACM0
      typemomo
      interval 20000
      prefix41 64 61 00 6e 3b
      channels 333
      rate115200
      debugoff

      [color]
      namered
      rgbFF0000
      gamma0.91
      adjust1.0
      blacklevel 0.0

      [color]
      namegreen
      rgb00FF00
      gamma0.86
      adjust0.96
      blacklevel 0.0

      [color]
      nameblue
      rgb0000FF
      gamma0.95
      adjust0.80
      blacklevel 0.0



      [light]
      position bottom
      name 1XX
      color red ambilight 1
      color green ambilight 2
      color blue ambilight 3
      hscan 97.3 100.0
      vscan 100.0 100


      [light]
      position bottom
      name 2XX
      color red ambilight 4
      color green ambilight 5
      color blue ambilight 6
      hscan 94.59 97.3
      vscan 100.0 100


      [light]
      position bottom
      name 3XX
      color red ambilight 7
      color green ambilight 8
      color blue ambilight 9
      hscan 91.89 94.59
      vscan 100.0 100


      [light]
      position bottom
      name 4XX
      color red ambilight 10
      color green ambilight 11
      color blue ambilight 12
      hscan 89.19 91.89
      vscan 100.0 100


      [light]
      position bottom
      name 5XX
      color red ambilight 13
      color green ambilight 14
      color blue ambilight 15
      hscan 86.49 89.19
      vscan 100.0 100


      [light]
      position bottom
      name 6XX
      color red ambilight 16
      color green ambilight 17
      color blue ambilight 18
      hscan 83.78 86.49
      vscan 100.0 100


      [light]
      position bottom
      name 7XX
      color red ambilight 19
      color green ambilight 20
      color blue ambilight 21
      hscan 81.08 83.78
      vscan 100.0 100


      [light]
      position bottom
      name 8XX
      color red ambilight 22
      color green ambilight 23
      color blue ambilight 24
      hscan 78.38 81.08
      vscan 100.0 100


      [light]
      position bottom
      name 9XX
      color red ambilight 25
      color green ambilight 26
      color blue ambilight 27
      hscan 75.68 78.38
      vscan 100.0 100


      [light]
      position bottom
      name 10X
      color red ambilight 28
      color green ambilight 29
      color blue ambilight 30
      hscan 72.97 75.68
      vscan 100.0 100


      [light]
      position bottom
      name 11X
      color red ambilight 31
      color green ambilight 32
      color blue ambilight 33
      hscan 70.27 72.97
      vscan 100.0 100


      [light]
      position bottom
      name 12X
      color red ambilight 34
      color green ambilight 35
      color blue ambilight 36
      hscan 67.57 70.27
      vscan 100.0 100


      [light]
      position bottom
      name 13X
      color red ambilight 37
      color green ambilight 38
      color blue ambilight 39
      hscan 64.86 67.57
      vscan 100.0 100


      [light]
      position bottom
      name 14X
      color red ambilight 40
      color green ambilight 41
      color blue ambilight 42
      hscan 62.16 64.86
      vscan 100.0 100


      [light]
      position bottom
      name 15X
      color red ambilight 43
      color green ambilight 44
      color blue ambilight 45
      hscan 59.46 62.16
      vscan 100.0 100


      [light]
      position bottom
      name 16X
      color red ambilight 46
      color green ambilight 47
      color blue ambilight 48
      hscan 56.76 59.46
      vscan 100.0 100


      [light]
      position bottom
      name 17X
      color red ambilight 49
      color green ambilight 50
      color blue ambilight 51
      hscan 54.05 56.76
      vscan 100.0 100


      [light]
      position bottom
      name 18X
      color red ambilight 52
      color green ambilight 53
      color blue ambilight 54
      hscan 51.35 54.05
      vscan 100.0 100


      [light]
      position bottom
      name 19X
      color red ambilight 55
      color green ambilight 56
      color blue ambilight 57
      hscan 48.65 51.35
      vscan 100.0 100


      [light]
      position bottom
      name 20X
      color red ambilight 58
      color green ambilight 59
      color blue ambilight 60
      hscan 45.95 48.65
      vscan 100.0 100


      [light]
      position bottom
      name 21X
      color red ambilight 61
      color green ambilight 62
      color blue ambilight 63
      hscan 43.24 45.95
      vscan 100.0 100


      [light]
      position bottom
      name 22X
      color red ambilight 64
      color green ambilight 65
      color blue ambilight 66
      hscan 40.54 43.24
      vscan 100.0 100


      [light]
      position bottom
      name 23X
      color red ambilight 67
      color green ambilight 68
      color blue ambilight 69
      hscan 37.84 40.54
      vscan 100.0 100


      [light]
      position bottom
      name 24X
      color red ambilight 70
      color green ambilight 71
      color blue ambilight 72
      hscan 35.14 37.84
      vscan 100.0 100


      [light]
      position bottom
      name 25X
      color red ambilight 73
      color green ambilight 74
      color blue ambilight 75
      hscan 32.43 35.14
      vscan 100.0 100


      [light]
      position bottom
      name 26X
      color red ambilight 76
      color green ambilight 77
      color blue ambilight 78
      hscan 29.73 32.43
      vscan 100.0 100


      [light]
      position bottom
      name 27X
      color red ambilight 79
      color green ambilight 80
      color blue ambilight 81
      hscan 27.03 29.73
      vscan 100.0 100


      [light]
      position bottom
      name 28X
      color red ambilight 82
      color green ambilight 83
      color blue ambilight 84
      hscan 24.32 27.03
      vscan 100.0 100


      [light]
      position bottom
      name 29X
      color red ambilight 85
      color green ambilight 86
      color blue ambilight 87
      hscan 21.62 24.32
      vscan 100.0 100


      [light]
      position bottom
      name 30X
      color red ambilight 88
      color green ambilight 89
      color blue ambilight 90
      hscan 18.92 21.62
      vscan 100.0 100


      [light]
      position bottom
      name 31X
      color red ambilight 91
      color green ambilight 92
      color blue ambilight 93
      hscan 16.22 18.92
      vscan 100.0 100


      [light]
      position bottom
      name 32X
      color red ambilight 94
      color green ambilight 95
      color blue ambilight 96
      hscan 13.51 16.22
      vscan 100.0 100


      [light]
      position bottom
      name 33X
      color red ambilight 97
      color green ambilight 98
      color blue ambilight 99
      hscan 10.81 13.51
      vscan 100.0 100


      [light]
      position bottom
      name 34X
      color red ambilight 100
      color green ambilight 101
      color blue ambilight 102
      hscan 8.11 10.81
      vscan 100.0 100


      [light]
      position bottom
      name 35X
      color red ambilight 103
      color green ambilight 104
      color blue ambilight 105
      hscan 5.41 8.11
      vscan 100.0 100


      [light]
      position bottom
      name 36X
      color red ambilight 106
      color green ambilight 107
      color blue ambilight 108
      hscan 2.7 5.41
      vscan 100.0 100


      [light]
      position bottom
      name 37X
      color red ambilight 109
      color green ambilight 110
      color blue ambilight 111
      hscan 0.0 2.7
      vscan 100.0 100


      [light]
      position left
      name 38X
      color red ambilight 112
      color green ambilight 113
      color blue ambilight 114
      hscan 0 0
      vscan 94.74 100.0


      [light]
      position left
      name 39X
      color red ambilight 115
      color green ambilight 116
      color blue ambilight 117
      hscan 0 0
      vscan 89.47 94.74


      [light]
      position left
      name 40X
      color red ambilight 118
      color green ambilight 119
      color blue ambilight 120
      hscan 0 0
      vscan 84.21 89.47


      [light]
      position left
      name 41X
      color red ambilight 121
      color green ambilight 122
      color blue ambilight 123
      hscan 0 0
      vscan 78.95 84.21


      [light]
      position left
      name 42X
      color red ambilight 124
      color green ambilight 125
      color blue ambilight 126
      hscan 0 0
      vscan 73.68 78.95


      [light]
      position left
      name 43X
      color red ambilight 127
      color green ambilight 128
      color blue ambilight 129
      hscan 0 0
      vscan 68.42 73.68


      [light]
      position left
      name 44X
      color red ambilight 130
      color green ambilight 131
      color blue ambilight 132
      hscan 0 0
      vscan 63.16 68.42


      [light]
      position left
      name 45X
      color red ambilight 133
      color green ambilight 134
      color blue ambilight 135
      hscan 0 0
      vscan 57.89 63.16


      [light]
      position left
      name 46X
      color red ambilight 136
      color green ambilight 137
      color blue ambilight 138
      hscan 0 0
      vscan 52.63 57.89


      [light]
      position left
      name 47X
      color red ambilight 139
      color green ambilight 140
      color blue ambilight 141
      hscan 0 0
      vscan 47.37 52.63


      [light]
      position left
      name 48X
      color red ambilight 142
      color green ambilight 143
      color blue ambilight 144
      hscan 0 0
      vscan 42.11 47.37


      [light]
      position left
      name 49X
      color red ambilight 145
      color green ambilight 146
      color blue ambilight 147
      hscan 0 0
      vscan 36.84 42.11


      [light]
      position left
      name 50X
      color red ambilight 148
      color green ambilight 149
      color blue ambilight 150
      hscan 0 0
      vscan 31.58 36.84


      [light]
      position left
      name 51X
      color red ambilight 151
      color green ambilight 152
      color blue ambilight 153
      hscan 0 0
      vscan 26.32 31.58


      [light]
      position left
      name 52X
      color red ambilight 154
      color green ambilight 155
      color blue ambilight 156
      hscan 0 0
      vscan 21.05 26.32


      [light]
      position left
      name 53X
      color red ambilight 157
      color green ambilight 158
      color blue ambilight 159
      hscan 0 0
      vscan 15.79 21.05


      [light]
      position left
      name 54X
      color red ambilight 160
      color green ambilight 161
      color blue ambilight 162
      hscan 0 0
      vscan 10.53 15.79


      [light]
      position left
      name 55X
      color red ambilight 163
      color green ambilight 164
      color blue ambilight 165
      hscan 0 0
      vscan 5.26 10.53


      [light]
      position left
      name 56X
      color red ambilight 166
      color green ambilight 167
      color blue ambilight 168
      hscan 0 0
      vscan 0.0 5.26


      [light]
      position top
      name 57X
      color red ambilight 169
      color green ambilight 170
      color blue ambilight 171
      hscan 0.0 2.86
      vscan 0 100


      [light]
      position top
      name 58X
      color red ambilight 172
      color green ambilight 173
      color blue ambilight 174
      hscan 2.86 5.71
      vscan 0 100


      [light]
      position top
      name 59X
      color red ambilight 175
      color green ambilight 176
      color blue ambilight 177
      hscan 5.71 8.57
      vscan 0 100


      [light]
      position top
      name 60X
      color red ambilight 178
      color green ambilight 179
      color blue ambilight 180
      hscan 8.57 11.43
      vscan 0 100


      [light]
      position top
      name 61X
      color red ambilight 181
      color green ambilight 182
      color blue ambilight 183
      hscan 11.43 14.29
      vscan 0 100


      [light]
      position top
      name 62X
      color red ambilight 184
      color green ambilight 185
      color blue ambilight 186
      hscan 14.29 17.14
      vscan 0 100


      [light]
      position top
      name 63X
      color red ambilight 187
      color green ambilight 188
      color blue ambilight 189
      hscan 17.14 20.0
      vscan 0 100


      [light]
      position top
      name 64X
      color red ambilight 190
      color green ambilight 191
      color blue ambilight 192
      hscan 20.0 22.86
      vscan 0 100


      [light]
      position top
      name 65X
      color red ambilight 193
      color green ambilight 194
      color blue ambilight 195
      hscan 22.86 25.71
      vscan 0 100


      [light]
      position top
      name 66X
      color red ambilight 196
      color green ambilight 197
      color blue ambilight 198
      hscan 25.71 28.57
      vscan 0 100


      [light]
      position top
      name 67X
      color red ambilight 199
      color green ambilight 200
      color blue ambilight 201
      hscan 28.57 31.43
      vscan 0 100


      [light]
      position top
      name 68X
      color red ambilight 202
      color green ambilight 203
      color blue ambilight 204
      hscan 31.43 34.29
      vscan 0 100


      [light]
      position top
      name 69X
      color red ambilight 205
      color green ambilight 206
      color blue ambilight 207
      hscan 34.29 37.14
      vscan 0 100


      [light]
      position top
      name 70X
      color red ambilight 208
      color green ambilight 209
      color blue ambilight 210
      hscan 37.14 40.0
      vscan 0 100


      [light]
      position top
      name 71X
      color red ambilight 211
      color green ambilight 212
      color blue ambilight 213
      hscan 40.0 42.86
      vscan 0 100


      [light]
      position top
      name 72X
      color red ambilight 214
      color green ambilight 215
      color blue ambilight 216
      hscan 42.86 45.71
      vscan 0 100


      [light]
      position top
      name 73X
      color red ambilight 217
      color green ambilight 218
      color blue ambilight 219
      hscan 45.71 48.57
      vscan 0 100


      [light]
      position top
      name 74X
      color red ambilight 220
      color green ambilight 221
      color blue ambilight 222
      hscan 48.57 51.43
      vscan 0 100


      [light]
      position top
      name 75X
      color red ambilight 223
      color green ambilight 224
      color blue ambilight 225
      hscan 51.43 54.29
      vscan 0 100


      [light]
      position top
      name 76X
      color red ambilight 226
      color green ambilight 227
      color blue ambilight 228
      hscan 54.29 57.14
      vscan 0 100


      [light]
      position top
      name 77X
      color red ambilight 229
      color green ambilight 230
      color blue ambilight 231
      hscan 57.14 60.0
      vscan 0 100


      [light]
      position top
      name 78X
      color red ambilight 232
      color green ambilight 233
      color blue ambilight 234
      hscan 60.0 62.86
      vscan 0 100


      [light]
      position top
      name 79X
      color red ambilight 235
      color green ambilight 236
      color blue ambilight 237
      hscan 62.86 65.71
      vscan 0 100


      [light]
      position top
      name 80X
      color red ambilight 238
      color green ambilight 239
      color blue ambilight 240
      hscan 65.71 68.57
      vscan 0 100


      [light]
      position top
      name 81X
      color red ambilight 241
      color green ambilight 242
      color blue ambilight 243
      hscan 68.57 71.43
      vscan 0 100


      [light]
      position top
      name 82X
      color red ambilight 244
      color green ambilight 245
      color blue ambilight 246
      hscan 71.43 74.29
      vscan 0 100


      [light]
      position top
      name 83X
      color red ambilight 247
      color green ambilight 248
      color blue ambilight 249
      hscan 74.29 77.14
      vscan 0 100


      [light]
      position top
      name 84X
      color red ambilight 250
      color green ambilight 251
      color blue ambilight 252
      hscan 77.14 80.0
      vscan 0 100


      [light]
      position top
      name 85X
      color red ambilight 253
      color green ambilight 254
      color blue ambilight 255
      hscan 80.0 82.86
      vscan 0 100


      [light]
      position top
      name 86X
      color red ambilight 256
      color green ambilight 257
      color blue ambilight 258
      hscan 82.86 85.71
      vscan 0 100


      [light]
      position top
      name 87X
      color red ambilight 259
      color green ambilight 260
      color blue ambilight 261
      hscan 85.71 88.57
      vscan 0 100


      [light]
      position top
      name 88X
      color red ambilight 262
      color green ambilight 263
      color blue ambilight 264
      hscan 88.57 91.43
      vscan 0 100


      [light]
      position top
      name 89X
      color red ambilight 265
      color green ambilight 266
      color blue ambilight 267
      hscan 91.43 94.29
      vscan 0 100


      [light]
      position top
      name 90X
      color red ambilight 268
      color green ambilight 269
      color blue ambilight 270
      hscan 94.29 97.14
      vscan 0 100


      [light]
      position top
      name 91X
      color red ambilight 271
      color green ambilight 272
      color blue ambilight 273
      hscan 97.14 100.0
      vscan 0 100


      [light]
      position right
      name 92X
      color red ambilight 274
      color green ambilight 275
      color blue ambilight 276
      hscan 100.0 100
      vscan 0.0 5.0


      [light]
      position right
      name 93X
      color red ambilight 277
      color green ambilight 278
      color blue ambilight 279
      hscan 100.0 100
      vscan 5.0 10.0


      [light]
      position right
      name 94X
      color red ambilight 280
      color green ambilight 281
      color blue ambilight 282
      hscan 100.0 100
      vscan 10.0 15.0


      [light]
      position right
      name 95X
      color red ambilight 283
      color green ambilight 284
      color blue ambilight 285
      hscan 100.0 100
      vscan 15.0 20.0


      [light]
      position right
      name 96X
      color red ambilight 286
      color green ambilight 287
      color blue ambilight 288
      hscan 100.0 100
      vscan 20.0 25.0


      [light]
      position right
      name 97X
      color red ambilight 289
      color green ambilight 290
      color blue ambilight 291
      hscan 100.0 100
      vscan 25.0 30.0


      [light]
      position right
      name 98X
      color red ambilight 292
      color green ambilight 293
      color blue ambilight 294
      hscan 100.0 100
      vscan 30.0 35.0


      [light]
      position right
      name 99X
      color red ambilight 295
      color green ambilight 296
      color blue ambilight 297
      hscan 100.0 100
      vscan 35.0 40.0


      [light]
      position right
      name 100
      color red ambilight 298
      color green ambilight 299
      color blue ambilight 300
      hscan 100.0 100
      vscan 40.0 45.0


      [light]
      position right
      name 101
      color red ambilight 301
      color green ambilight 302
      color blue ambilight 303
      hscan 100.0 100
      vscan 45.0 50.0


      [light]
      position right
      name 102
      color red ambilight 304
      color green ambilight 305
      color blue ambilight 306
      hscan 100.0 100
      vscan 50.0 55.0


      [light]
      position right
      name 103
      color red ambilight 307
      color green ambilight 308
      color blue ambilight 309
      hscan 100.0 100
      vscan 55.0 60.0


      [light]
      position right
      name 104
      color red ambilight 310
      color green ambilight 311
      color blue ambilight 312
      hscan 100.0 100
      vscan 60.0 65.0


      [light]
      position right
      name 105
      color red ambilight 313
      color green ambilight 314
      color blue ambilight 315
      hscan 100.0 100
      vscan 65.0 70.0


      [light]
      position right
      name 106
      color red ambilight 316
      color green ambilight 317
      color blue ambilight 318
      hscan 100.0 100
      vscan 70.0 75.0


      [light]
      position right
      name 107
      color red ambilight 319
      color green ambilight 320
      color blue ambilight 321
      hscan 100.0 100
      vscan 75.0 80.0


      [light]
      position right
      name 108
      color red ambilight 322
      color green ambilight 323
      color blue ambilight 324
      hscan 100.0 100
      vscan 80.0 85.0


      [light]
      position right
      name 109
      color red ambilight 325
      color green ambilight 326
      color blue ambilight 327
      hscan 100.0 100
      vscan 85.0 90.0


      [light]
      position right
      name 110
      color red ambilight 328
      color green ambilight 329
      color blue ambilight 330
      hscan 100.0 100
      vscan 90.0 95.0


      [light]
      position right
      name 111
      color red ambilight 331
      color green ambilight 332
      color blue ambilight 333
      hscan 100.0 100
      vscan 95.0 100.0



      Die Sketche laufen jeweils ohne Fehlermeldung durch, der Startpunkt ist bei mir unten rechts.

      Fehler in der config oder im Sketch?

      Grüße und danke!
    • hallo hallo173
      Für den Arduino:
      Ist die fastLED Library richtig in die IDE Software integriert?
      Die muss in der Arduino Software ins /library/FastLED Verzeichnis kopiert werden (muss unbedingt /FastLED heissen, nicht /FastLED-Master!)

      Dann meinen Test-Sketch installieren, dann sollten die LED's der Reihe nach durchleuchten.
      Wenn das der Fall ist, kannst du meinen anderen Sketch raufspielen und an der Box testen.

      Die enigmalight.conf sollte so passen.
      Dateien
    • Guten Morgen,

      danke Dir turtok, werde die Sketche morgen mal testen, heute komme ich leider nicht
      mehr dazu.

      Die FastLED Bibliothek habe ich über die Bibliotheksverwaltung installiert, sollte sich also
      im richtigen Ordner befinden denke ich, werd aber auch da mal nachschauen.

      Grüße und danke
    • Hallo,
      nach dem groben Einlesen habe ich noch Verständnisfragen (bitte nicht direkt steinigen; wenn ich mir wirklich alle 95 Seiten durchlesen muss, ist das dann halt so :) )

      Wenn ich das mit Arduino machen möchte, brauche ich einen bestimmten, oder geht ein einfacher NANO? Die LEDs hatte ich schon mal an einem NANO aber braucht der Arduino irgendwelche Fähigkeiten, was USB Kommunikation oder CPU Geschwindigkeit angeht?
      Angeschlossen wird der Arduino einfach über USB und kommuniziert über die USBtoSerial Bridge, oder?
      Gibt es eine "offizielle" Grundquelle für ein Arduino-Sketch? Oder nehme ich "irgendeins" hier aus dem Thread?
    • Hallo turtok

      hab mal Deine beiden Sketche probiert, der erste funktioniert einwandfrei, bei dem 2. leuchteten
      leider nur die unteren LEDs.

      Kann es eigentlich sein, dass die LEDs zu flackern anfangen sobald ich den Fernseher einschalte?

      Grüße und danke!
    • @hallo173:
      Es kann sein das beim zweiten Sketch ein paar LEDs am Anfang des Stripes leuchten wenn kein USB Signal da ist.
      Hast du alles richtig zusammengesteckt?
      Wegen flackern, hast du einen Widerstand (hier ein 470 Ohm) eingebaut?
      Du könntest als Versuch die Enigmalight Konfig löschen und nochmals von vorne beginnen.

      Viel Erfolg!
      Dateien
    • Hallo turtok,

      vielen vielen Dank für Deine Hilfe, nachdem ich die VU neu geflasht habe funktioniert es nun einwandfrei.
      Eine Frage habe ich allerdings noch, ist es normal, dass es eine Weile dauert, bis ELight sich einschaltet?

      Viele Grüße
    • Hallo hallo173,
      Schön zu hören das es jetzt nur noch um Details geht.
      Bei mir startet Enigmalight beim Booten, deshalb spüre ich nicht wie lange es dauert für den Start.
      Zwischendurch dauert es bei mir aber bis zu einer Minute wenn ich die Box in den Standby setze bis die LEDs aus sind, aber nicht immer.
      Dein Problem ist mir leider nicht bekannt.
      Gruss
      Turti

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von turtok187 ()

    • Hallo
      So muss euch auch nochmal ansprechen. Hab alles soweit am laufen nur sind grün und blau vertauscht. Könnt ihr mir nur einen kurzen Tipp geben wie ich das in der Enigmalight.conf umstelle bzw. Was ich dort ändern muss?
    • @tiger_r
      hast du einen Arduino und WS2812B Stripes?
      ich musste es im Arduino Sketch anpassen damit es funktioniert hat.

      Quellcode

      1. #define COLOR_ORDER GRB
      hier kannst du mit der Reihenfolge spielen, probier doch mal RBG

      in den Enigmalight Einstellungen habe ich "RGB" eingestellt.
    • dann tuts mir leid, kenn ich nicht. aber vielleicht kannst du im Sedulight die Reihenfolge ja auch einstellen?
    • ich hab mal Onkel Google gefragt, der sagt das man im SeduSetupTool auf BGR statt RGB einstellen soll.
      habt ihr das schon probiert?
      HowTo - SeduBoard einstellen - SEDU-Board.de
    • Beim Sedulight muss man den Farbcode in der enigmalight.conf tauschen. Also den Grün-Wert bei blau eintragen und den Blau-Wert bei grün.

      Spoiler anzeigen

      [color]
      name red
      rgb FF0000
      gamma 0.91
      adjust 1.0
      blacklevel 0.0


      [color]
      name green
      rgb 00FF00
      gamma 0.86
      adjust 0.96
      blacklevel 0.0


      [color]
      name blue
      rgb 0000FF
      gamma 0.95
      adjust 0.80
      blacklevel 0.0
    • Hallo habe jetzt den Farbcode getauscht den grüne wert bei blau eingegeben.Hat sich aber nichts geändert. Hier meine Einstellungen

      name red
      rgb FF0000
      gamma 0.91
      adjust 1.0
      blacklevel 0.0


      [color]
      name green
      rgb 00FF00
      gamma 0.86
      adjust 0.96
      blacklevel 0.0


      [color]
      name blue
      rgb 0000FF
      gamma 0.95
      adjust 0.80
      blacklevel 0.0
    • abgespeichert und neu gestartet ??