Add stm SetLED support to CLI 60/171560/6
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 5 Mar 2018 17:38:42 +0000 (18:38 +0100)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 22 Jun 2018 15:11:10 +0000 (17:11 +0200)
commitfc7c9284cee71e552ee65304e6d970d66adabec8
tree6a4e2e7857e3b177d7ea6e0ce2268883c888a268
parente2506515f9205f5c69add860e159389a82e99476
Add stm SetLED support to CLI

New flags, "-led1" and "-led2", take a string argument of 3 commma
separated values in 0-255 range (8-bit). Each value represents a basic
color, in red, green, blue order.

Example (set led1 to pink): stm -led1 128,16,32

SetLED is a part of STM interface that only priviledged users should
have access to. "-remote" flag should be set to correct path.

Change-Id: Idd1b6b39b420f8a91c0aa1cf0f05c2586efdd66b
sw/nanopi/cmd/stm/client.go
sw/nanopi/cmd/stm/stm.go