I can not run Ws2812B LED by sample of nanoFramework.IoT.Device #1386
Replies: 4 comments 3 replies
-
As mentioned in the issues instructions, we're not using these to answer questions. |
Beta Was this translation helpful? Give feedback.
-
This is unrelate with Ws2812B... the issue seems to be assigning GPIO22 to ADC CH10. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/nanoframework/nanoFramework.IoT.Device/blob/develop/devices/Ws28xx/README.md so I ran another code example. The WS2812B light board can light up, and the breathing light effect can be achieved with less than 24 light beads. However, the breathing light effect with 30 light beads feels slightly stuck, and the experience is not very good.
I directly provided a color array to reduce the computational complexity of the breathing effect, The effect still feels slightly stuck, but it is limited by the Dirver itself and there is not a good optimization approach.
The ESP32 is unable to light up 300 lights by nanoframework, which means it cannot light up a single light strip. This strip has a total of 60 light beads per meter, and a total of 5 meters per strip. An exception of outofmemory was throwed. |
Beta Was this translation helpful? Give feedback.
-
https://www.bilibili.com/video/BV1j34y1d7kr/?spm_id_from=333.851.dynamic.content.click&vd_source=5ba4a29b69cce9fd14c9d0068672dc97 I am very familiar with desktop application development and web application development in C #, but I am a bit inexperienced in developing ESP32 and light strips using nanoframework for the first time. I think the nanoframework and system have consumed too much memory, causing an exception of insufficient memory when 300 light bulbs are lit. I wanted to make some contributions and made some attempts, but in the end, they all failed.
I don't remember the effect of lighting upLight(255, 0, 0, 23, 0, 0, 2000);(), but the effect of the breathing light is very poor.
|
Beta Was this translation helpful? Give feedback.
-
Location
GitHub README
Description
https://github.com/nanoframework/nanoFramework.IoT.Device/blob/develop/devices/Ws28xx/README.md
Configuration.SetPinFunction(22, DeviceFunction.ADC1_CH10);
It throw System.ArgumentException.
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions