问题标签 [fadecandy]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
965 浏览

javascript - 如何使用 websocket 和 fadecandy 服务器来操作 ws2812b 灯条

我们需要关于如何使用 websocket 和 fadecandy 服务器来映射 64 个 LED 灯条的帮助。

这是 fadecandy 服务器中的映射

服务器配置 JSON:

我们如何使用 fadecandy 服务器映射到 websocket?

0 投票
4 回答
114 浏览

python - 在 for 循环中选择第一个列表项

我现在拥有的是下面的循环,它依次点亮每根 24 根 LED 灯。

我想要的是以前点亮的 LED 在每次迭代时都保持亮着。因此,每轮点亮的 LED 数量都会增加一个。

我假设我可以简单地从列表的开头选择到第 i 个项目,如下所示。然而,这会返回一个“TypeError:'int' object is not iterable”。

我不太清楚为什么这不起作用。

虽然我已经引起了您的注意,但除了使用 time.sleep() 之外,还有更好的方法来计时这些循环吗?虽然我使用的是线程,但当 LED 模式发生变化时,睡眠仍然会导致一些延迟。

0 投票
0 回答
6 浏览

raspberry-pi - Set Brightness Fadecandy with rpi

I am making a project with neopixels, a RPI and a fadecandy.I am very new to all of this.

I have written some code because I want to make different animations on my neopixels. The problem I am facing now, I don't know how to change the brightness for the neopixels.

I tried some different things but I always get in conflict and I think it is maybe because I am using the fadecandy? I am also using the opc library.

I wanted to ask if someone knows how to change the brightness when I am still using the fadecandy?

Or would it be more easy to just change the project and use an arduino?