awawa-dev / HyperSerialESP32

High speed USB serial port LED strip driver for HyperHDR using ESP32 or ESP32-S2 devices. Multi-segment & multi-core support.
MIT License
72 stars 202 forks source link

Wrong colors second led strip in multi-segment setup #33

Closed awawa-dev closed 1 year ago

awawa-dev commented 1 year ago

Discussed in https://github.com/awawa-dev/HyperSerialESP32/discussions/32

Originally posted by **myswa87** March 30, 2023 Hello Awawa, I find it very challeging to get two correctly working led strips with the multi-segment option. I've got a test line-up with a ESP32 MH-ET Live (CH9102) and two ws2812b led strips. Now the problem is that the second led strip always shows different colors, always three colors and this repeats over the whole second led strip (see attached image) I used the following settings in the platformio.ini: build_flags = -DSERIALCOM_SPEED=4000000 build_flags = -DNEOPIXEL_RGB -DDATA_PIN=2 ${env.build_flags} -DSECOND_SEGMENT_START_INDEX=27 -DSECOND_SEGMENT_DATA_PIN=4 -DSECOND_SEGMENT_REVERSED In the HyperHDR logging I can see that the adalight is recognized: [LEDDEVICE_ADALIGHT] DETECTED DEVICE USING HYPERSERIALESP8266/HYPERSERIALESP32 FIRMWARE (Welcome! Awa driver 9. SECONDSEGMENTSTARTINDEX = 27) at 85 msec I've added my HyperHDR configuration backup in the attached .zip file. The link to my own fork is: https://github.com/myswa87/HyperSerialESP32 Do you have any ideas where it goes wrong? I already tried: - different ESP boards - choose different GPIO's - different cables. - clean HyperHDR installation on both Windows and Linux. - tried only with a background effect color I hope to hear from you, thanks in advance. [HyperHDR-19.0.0.0-Backup-2023-03-30.json.zip](https://github.com/awawa-dev/HyperSerialESP32/files/11114840/HyperHDR-19.0.0.0-Backup-2023-03-30.json.zip) [led_strips](https://user-images.githubusercontent.com/129425838/228931822-242d8547-40e1-4390-8023-d56ee4f034f9.jpg)
myswa87 commented 1 year ago

Hello Awawa,

Thank you for the quick fix. I can verify that fix has solved my issue. Keep up the great work.