查看Hacking the Wowwee Rovio的源代码
←
Hacking the Wowwee Rovio
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
==== Rovio 顶灯控制 ==== 以下命令仅适用于 Rovio 离开充电底座的情形 <pre> http://YOUR_ROVIO_IP/mcu?parameters=114D4D00010053485254000100011A000000 # turn off all lights http://YOUR_ROVIO_IP/mcu?parameters=114D4D00010053485254000100011AFF0000 # turn on all lights </pre> 命令字 114D4D00010053485254000100011A<b>XY</b>0000 中的 XY 是个 16 进制值,其与各 LED 的对应关系为: LED6 LED5 | LED4 LED3 LED2 LED1 LED 编号如下所示: [[文件:Rovio-led.jpg]] 则 3F 就可将所有 LED 打开;0F 则 打开 LED4 ~ LED1;12 则打开 LED5 和 LED2 <source lang=bash> #!/bin/sh # LED1 0x01 # LED2 0x02 # LED3 0x04 # LED4 0x08 # LED5 0x10 # LED6 0x20 for ((c=1; c<5; c++)) do curl -u username:password -d "parameters=114D4D00010053485254000100011A000000" http://192.168.1.254/mcu curl -u username:password -d "parameters=114D4D00010053485254000100011AFF0000" http://192.168.1.254/mcu done for ((c=1; c<5; c++)) do curl -u username:password -d "parameters=114D4D00010053485254000100011A010000" http://192.168.1.254/mcu curl -u username:password -d "parameters=114D4D00010053485254000100011A020000" http://192.168.1.254/mcu curl -u username:password -d "parameters=114D4D00010053485254000100011A040000" http://192.168.1.254/mcu curl -u username:password -d "parameters=114D4D00010053485254000100011A080000" http://192.168.1.254/mcu curl -u username:password -d "parameters=114D4D00010053485254000100011A100000" http://192.168.1.254/mcu curl -u username:password -d "parameters=114D4D00010053485254000100011A200000" http://192.168.1.254/mcu done for ((c=1; c<5; c++)) do curl -u username:password -d "parameters=114D4D00010053485254000100011A000000" http://192.168.1.254/mcu curl -u username:password -d "parameters=114D4D00010053485254000100011AFF0000" http://192.168.1.254/mcu done sleep 1; curl -u username:password -d "parameters=114D4D00010053485254000100011A3F0000" http://192.168.1.254/mcu </source>
返回到
Hacking the Wowwee Rovio
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面