循环浏览十六进制色谱

发布于 2024-12-06 16:16:36 字数 117 浏览 1 评论 0原文

我正在使用 Arduino 编写一些代码,并且尝试让 LED 条按顺序循环显示颜色光谱。我过去通过独立更改红绿和蓝色值来完成此操作,但我当前使用的 LED 采用十六进制值(例如 0xFF0000)。我怎样才能做到这一点?

I'm working on some code with Arduino, and I'm trying to get a strip of LEDs to cycle through the spectrum of colours in order. I have done this in the past by changing the red green and blue values independently, but the current LEDs I am working with take Hex values (for example, 0xFF0000). How I can do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文