{"id":722,"date":"2019-04-18T00:04:23","date_gmt":"2019-04-17T16:04:23","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=722"},"modified":"2019-04-18T00:07:20","modified_gmt":"2019-04-17T16:07:20","slug":"setleds","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/setleds","title":{"rendered":"setleds\u547d\u4ee4 – \u8bbe\u5b9a\u952e\u76d8\u4e0a\u65b9\u4e09\u4e2a LED \u7684\u72b6\u6001"},"content":{"rendered":"\n
setleds\u5373\u662f\u82f1\u6587\u8bcd\u7ec4\u201cset leds\u201d\u7684\u5408\u5e76\uff0c\u7ffb\u8bd1\u4e3a\u4e2d\u6587\u5c31\u662f\u8bbe\u7f6eLED\u706f\u3002setleds\u547d\u4ee4\u7528\u6765\u8bbe\u5b9a\u952e\u76d8\u4e0a\u65b9\u4e09\u4e2a LED \u706f\u7684\u72b6\u6001\u3002\u5728 Linux \u4e2d\uff0c\u6bcf\u4e00\u4e2a\u865a\u62df\u4e3b\u63a7\u53f0\u90fd\u6709\u72ec\u7acb\u7684\u8bbe\u5b9a\u3002 <\/p>\n\n\n\n
\u8fd9\u662f\u4e00\u4e2a\u5341\u5206\u795e\u5947\u7684\u547d\u4ee4\uff0c\u7adf\u7136\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u6765\u63a7\u5236\u952e\u76d8\u7684\u706f\u7684\u72b6\u6001\u3002\u90a3\u4e48\u4e0b\u9762\u6211\u4e00\u8d77\u6765\u5b66\u4e60\u4e00\u4e0b\u8fd9\u4e2a\u547d\u4ee4\u5427\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>setleds [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u63a7\u5236\u952e\u76d8\u706fnum\u706f\u4eae\u548c\u706f\u706d\uff1a<\/p>\n\n\n\n \u63a7\u5236\u952e\u76d8\u7684\u5927\u5c0f\u5199\u952e\u6253\u5f00\u6216\u5173\u95ed\uff0c\u952e\u76d8\u6307\u793a\u706f\u4eae\u4e0e\u706d\uff1a <\/p>\n\n\n\n \u63a7\u5236\u952e\u76d8\u7684\u9009\u9879\u952e\u6253\u5f00\u6216\u5173\u95ed\uff0c\u952e\u76d8\u6307\u793a\u706f\u4eae\u4e0e\u706d\uff1a<\/p>\n\n\n\n \u5bf9\u4e09\u706f\u7684\u4eae\u4e0e\u706d\u7684\u60c5\u51b5\u8fdb\u884c\u7ec4\u5408\uff0c\u5206\u522b\u8bbe\u7f6e\u4e3a\u6570\u5b57\u706f\u4eae\uff0c\u5927\u5c0f\u5199\u706f\u706d\uff0c\u9009\u9879\u952escroll\u706f\u706d\uff1a<\/p>\n\n\n\n setleds\u5373\u662f\u82f1\u6587\u8bcd\u7ec4\u201cset leds\u201d\u7684\u5408\u5e76\uff0c\u7ffb\u8bd1\u4e3a\u4e2d\u6587\u5c31\u662f\u8bbe\u7f6eLED\u706f\u3002setleds\u547d\u4ee4\u7528\u6765\u8bbe\u5b9a\u952e […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/722"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=722"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/722\/revisions"}],"predecessor-version":[{"id":800,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/722\/revisions\/800"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} -F <\/td> \u8bbe\u5b9a\u865a\u62df\u4e3b\u63a7\u53f0\u7684\u72b6\u6001 <\/td><\/tr> -D<\/td> \u6539\u53d8\u865a\u62df\u4e3b\u63a7\u53f0\u7684\u72b6\u6001\u548c\u9884\u8bbe\u7684\u72b6\u6001<\/td><\/tr> -L<\/td> \u76f4\u63a5\u6539\u53d8 LED \u663e\u793a\u7684\u72b6\u6001<\/td><\/tr> +num\/-num<\/td> \u5c06\u6570\u5b57\u952e\u6253\u5f00\u6216\u5173\u95ed <\/td><\/tr> +caps\/-caps<\/td> \u628a\u5927\u5c0f\u5199\u952e\u6253\u5f00\u6216\u5173\u95ed <\/td><\/tr> +scroll \/-scroll <\/td> \u628a\u9009\u9879\u952e\u6253\u5f00\u6216\u5173\u95ed<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# setleds +num
[root@linuxcool ~]# setleds -num <\/pre>\n\n\n\n[root@linuxcool ~]# setleds +caps
[root@linuxcool ~]# setleds -caps <\/pre>\n\n\n\n[root@linuxcool ~]# setleds +scroll <\/pre>\n\n\n\n
[root@linuxcool ~]# setleds +num -caps -scroll <\/pre>\n","protected":false},"excerpt":{"rendered":"