I am using WS2812b, the single data wire type.
Config was generated by HyperCon: [MEDIA=pastebin]yuZuj7Eq[/MEDIA]
Type values seem broken as WS2801 and few other types available in hyperCon throw an error in hyperiond complaining that type is not valid. Only with type: adalight could I even start hyperiond.
I used exact arduino code from here:
https://hyperion-project.org/t…-ws2801-ws2812b-apa102.8/
Here is the output after running hyperiond: sudo hyperiond /etc/hyperion/hyperion.config.json
Hyperion Ambilight Deamon (30191)
Version : master (brindosch-709faea/49a9ca9-1508693345
Build Time: Apr 2 2018 11:24:30
INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
HYPERION INFO: ColorTransform 'default' => [0; 435]
HYPERION INFO: ColorCorrection 'default' => [0; 435]
HYPERION INFO: ColorAdjustment 'default' => [0; 435]
LEDDEVICE INFO: configuration:
{
"colorOrder" : "rgb",
"delayAfterConnect" : 0,
"name" : "WA-42-Monitor",
"output" : "/dev/ttyUSB0",
"rate" : 460800,
"type" : "adalight"
}
Opening UART: /dev/ttyUSB0
INFO: Creating linear smoothing
HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
EFFECTENGINE INFO: Initializing Python interpreter
INFO: Hyperion started and initialised
INFO: Boot sequence 'Strobe blue' EFFECTENGINE INFO: run effect Strobe blue on channel 0
BLACKBORDER INFO: threshold set to 0 (0)
BLACKBORDER INFO: mode:default
started
INFO: Kodi checker created and started
INFO: Json server created and started on port 19444
INFO: Proto server created and started on port 19445
FRAMEBUFFERGRABBER INFO: opened with resolution: 1920x1200@32bit
BLACKBORDER INFO: threshold set to 0 (0)
BLACKBORDER INFO: mode:default
INFO: Framebuffer grabber created and started
KODICHECK INFO: Kodi Connected
KODICHECK INFO: switching to MENU mode
BORDER SWITCH REQUIRED!!
CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
EFFECTENGINE INFO: effect finished
Alles anzeigen
I get a rainbow when arduino is reset AND when hyperiond is started or stopped. I do not however get a different boot effect if I set it in the hyperiond config so hyperiond isn't actually controlling arduino, it's just the default boot effect programmed in arduino. Serial data is being sent as I can see flashing TX/RX lights on the ftdi programmer connected to Arduino. If I stop hyperiond I get a notification in kodi from the Add-on. I also see "Switching to PAUSE" or "VIDEO mode" when I pause/resume in Kodi so it seems it is connected to the hyperiond service properly. It is also sending serial data so unless the date being sent is invalid in some way then it leave the issue with Arduino code.
Should arduino code wait for the magic word? I tried commenting the wait section out but it did not make a difference. Maybe someone can see an issue with the code or provide a working sample?
Why aren't the LEDs turning on? What am I missing?