Anders-Holst / xled_plus

Addons to the XLED package, to create nice effects for Twinkly LED lights
MIT License
33 stars 8 forks source link

error #26

Open olieter opened 10 months ago

olieter commented 10 months ago

IndexError: tuple index out of range

Anders-Holst commented 10 months ago

In general, that is not a very helpful error report: You need to specify what code you tried to run, on what device and its configuration, and also provide the entire stack trace so it is possible to see on what line in what function it happens.

But let me guess, based on similar errors in he past: You have tried to use a 2-dimensional effect on a device with no layout mapping (or possibly a generation 1 device which does not reveal the layout) ? (Thus, the effect tries to access the two coordinates but there is only one coordinate available - the index along the string) If this is the case, map the leds via the app, and the effect should work.

Strictly you are right that it is a bug, or at least very asocial of the code, to just crash when this happens - it should of course write an informative message about this and silently stop. I may consider such a fix in the future.

Best Anders

olieter commented 10 months ago

Yes i gave generation 1 device , all day,s 2 to coord dont work , i update few samples days from .launch_rt() to .launch_movie() en the work . the generation 1 cant not playlist not even in the app . The are good effects you make . Thanks for that,