LED 彩色 HTC Legend

发布于 2024-08-26 20:04:14 字数 262 浏览 4 评论 0原文

我正在尝试将 HTC Legend 的 LED 颜色与我的通知一起设为蓝色。

    notif.ledARGB = color.BLUE; 
    notif.ledOnMS = 100;
    notif.ledOffMS = 100;
    notif.flags |= Notification.FLAG_SHOW_LIGHTS;

LED 灯一直呈绿色闪烁(而不是按照要求的模式)。代码有问题还是Legend不支持控制LED?

I'm trying to make the LED of the HTC Legend color blue along with my notification.

    notif.ledARGB = color.BLUE; 
    notif.ledOnMS = 100;
    notif.ledOffMS = 100;
    notif.flags |= Notification.FLAG_SHOW_LIGHTS;

The led just keeps flashing green (and not in the requested pattern). Is there something wrong with the code or doesn't the Legend support controlling the LED?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半﹌身腐败 2024-09-02 20:04:14

HTC Hero 和 HTC Nexus One 的 LED 灯在库存版本中都被锁定为一种颜色,因此 Legend 可能也是如此。

硬件(很可能是 Hero/N1)能够显示全彩,因此未来的更新(或自定义 ROM)将/可能会解锁它。

Both the HTC Hero and the HTC Nexus One had their LED's locked to only one color in the stock build so the Legend is probably too.

The hardware is (most likely, as Hero/N1) capable of full color so future updates (or custom ROMS) will/may unlock it.

天冷不及心凉 2024-09-02 20:04:14

Legend 还卖吗?您可能运行的不是 Legend 软件的最终版本。

或者可能是 HTC 由于某种原因决定不添加对多色通知灯的支持。 Nexus One 上也存在类似的问题,我相信无论您要求什么颜色,它总是闪烁白色,即使硬件能够显示多种颜色。

Is the Legend even on sale anywhere yet? You may not be running a final version of the Legend software.

Or it may be that HTC decided not to add support for multicolor notification lights for some reason. A similar problem is present on the Nexus One, I believe it always flashes white no matter what color you request, even though the hardware is capable of doing multiple colors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文