You need to log in to create posts and topics.

error in library part ws2812

The timing parameters for the library part ws2812 led do not work properly. Adjusting the values allows the part to work in simulation,
but the updated value for T1L does not get stored properly in the circuit .sim1 file and is lost when the file is reloaded.
The stored values in the .sim1 file should be in order "T0H=", "T0L=","T1H=","T1L=" but instead are saved as "T0H=", "T0L=","T1H=","T1H=" 

I think this originates from a typo in the SimulIDE source file "ws2812.cpp" line 79 where "T1H" is used twice and "T1L" not at all.

Version is 1.1.0 - SR1 running on Windows 10

Hello @locomotivedoctor

This issue was mentioned previously. See: https://simulide.com/p/forum/topic/ws2812-does-not-work-properly-with-attiny85/

I hope this will be fixed soon @arcachofo.

Quote from locomotivedoctor on September 9, 2025, 2:20 am

The timing parameters for the library part ws2812 led do not work properly. Adjusting the values allows the part to work in simulation,
but the updated value for T1L does not get stored properly in the circuit .sim1 file and is lost when the file is reloaded.
The stored values in the .sim1 file should be in order "T0H=", "T0L=","T1H=","T1L=" but instead are saved as "T0H=", "T0L=","T1H=","T1H=" 

I think this originates from a typo in the SimulIDE source file "ws2812.cpp" line 79 where "T1H" is used twice and "T1L" not at all.

Version is 1.1.0 - SR1 running on Windows 10

You are right there is a typo inT1L, thanks for reporting.

 

Quote from MonkeyEnterprise on September 9, 2025, 11:16 am

Hello @locomotivedoctor

This issue was mentioned previously. See: https://simulide.com/p/forum/topic/ws2812-does-not-work-properly-with-attiny85/

I hope this will be fixed soon @arcachofo.

This seems a different issue, in your case it looks specific to the attiny circuit.