Documentation
¶
Index ¶
- Constants
- func AmlogicWKYS805_RGBGet(pin string) (int, error)
- func AmlogicWKYS805_RGBSet(pin string, value int) (bool, error)
- func EEKIT_GPIOGet(pin int) (int, error)
- func EEKIT_GPIOSet(pin, value int) (bool, error)
- func HelloWorld()
- func RASPI4_GPIOGet(pin int) (int, error)
- func RASPI4_GPIOSet(pin, value int) (bool, error)
Constants ¶
View Source
const ( AmlogicWKYS805_R string = "red" AmlogicWKYS805_G string = "green" AmlogicWKYS805_B string = "blue" )
玩客云WS1608有一个RGB LED,其系统内部已经直接支持进设备树:
R -> /sys/class/leds/onecloud\:red\:alive/brightness G -> /sys/class/leds/onecloud\:green\:alive/brightness B -> /sys/class/leds/onecloud\:blue\:alive/brightness
Variables ¶
This section is empty.
Functions ¶
func AmlogicWKYS805_RGBGet ¶ added in v0.5.2
func AmlogicWKYS805_RGBSet ¶ added in v0.5.2
func EEKIT_GPIOGet ¶
explain:read gpio Pin: gpio pin return:1 is high 0 is low
func EEKIT_GPIOSet ¶
explain:set gpio Pin: gpio pin Value:gpio level 1 is high 0 is low
func RASPI4_GPIOGet ¶
func RASPI4_GPIOSet ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.