循环浏览十六进制色谱
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论