This website works better with JavaScript
Trang chủ
Khám phá
Trợ giúp
Đăng ký
Đăng nhập
joe
/
c180_testzone
Xem
1
Star
0
Fork
0
Các tập tin
Các vấn đề
0
Yêu cầu kéo về
0
Wiki
Tree:
3515336617
Branches
Tags
master
c180_testzone
/
python_test
/
led
Joe
3515336617
add python_test
1 tuần trước cách đây
..
code
3515336617
add python_test
1 tuần trước cách đây
release
3515336617
add python_test
1 tuần trước cách đây
Makefile
3515336617
add python_test
1 tuần trước cách đây
readme.txt
3515336617
add python_test
1 tuần trước cách đây
readme.txt
*注意:由于工具需要直接操作硬件 I/O 端口 (Port 0x62/0x66),必须使用 sudo 权限运行。
1、 设置颜色
sudo ./led_tool color
e.g. sudo ./led_tool color r 设置红色
2、 设置闪烁状态,无参数默认频率500ms
sudo ./led_tool blink [time]
e.g. sudo ./led_tool blink on 3 设置闪烁开启,频率300ms
sudo ./led_tool blink off 设置闪烁关闭
3、查询当前状态
sudo ./led_tool status