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_GPIOGetByFile(pin byte) (int, error)
- func EEKIT_GPIOGetDI1() (int, error)
- func EEKIT_GPIOGetDI2() (int, error)
- func EEKIT_GPIOGetDI3() (int, error)
- func EEKIT_GPIOGetDO1() (int, error)
- func EEKIT_GPIOGetDO2() (int, error)
- func EEKIT_GPIOGetUserGpio() (int, error)
- func EEKIT_GPIOSet(pin, value int) (bool, error)
- func EEKIT_GPIOSetByFile(pin, value int) error
- func EEKIT_GPIOSetDI1(value int) error
- func EEKIT_GPIOSetDI2(value int) error
- func EEKIT_GPIOSetDI3(value int) error
- func EEKIT_GPIOSetDO1(value int) error
- func EEKIT_GPIOSetDO2(value int) error
- func EEKIT_GPIOSetUserGpio(value int) error
- func HelloWorld()
- func RASPI4_GPIOGet(pin int) (int, error)
- func RASPI4_GPIOSet(pin, value int) (bool, error)
- func RhinoPiGet4GCSQ() int
- func RhinoPiGetAPN() (string, error)
- func RhinoPiGetCOPS() (string, error)
- func RhinoPiGetICCID() (string, error)
- func RhinoPiRestart4G() (string, error)
- func RhinoPiSetAPN(ptype int, apn, username, password string, auth, cdmaPwd int) (string, error)
Constants ¶
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_GPIOGetByFile ¶ added in v0.6.4
func EEKIT_GPIOGetDI1 ¶ added in v0.6.4
func EEKIT_GPIOGetDI2 ¶ added in v0.6.4
func EEKIT_GPIOGetDI3 ¶ added in v0.6.4
func EEKIT_GPIOGetDO1 ¶ added in v0.6.4
* * 新版本的文件读取形式获取GPIO状态 *
func EEKIT_GPIOGetDO2 ¶ added in v0.6.4
func EEKIT_GPIOGetUserGpio ¶ added in v0.6.5
func EEKIT_GPIOSet ¶
explain:set gpio Pin: gpio pin Value:gpio level 1 is high 0 is low
func EEKIT_GPIOSetByFile ¶ added in v0.6.4
func EEKIT_GPIOSetDI1 ¶ added in v0.6.4
func EEKIT_GPIOSetDI2 ¶ added in v0.6.4
func EEKIT_GPIOSetDI3 ¶ added in v0.6.4
func EEKIT_GPIOSetDO1 ¶ added in v0.6.4
func EEKIT_GPIOSetDO2 ¶ added in v0.6.4
func EEKIT_GPIOSetUserGpio ¶ added in v0.6.5
func RASPI4_GPIOGet ¶
func RASPI4_GPIOSet ¶
func RhinoPiGet4GCSQ ¶ added in v0.6.4
func RhinoPiGet4GCSQ() int
*
- 获取信号: +CSQ: 39,99
- 0:没有信号。
- 1-9:非常弱的信号,可能无法建立连接。
- 10-14:较弱的信号,但可能可以建立连接。
- 15-19:中等强度的信号。
- 20-31:非常强的信号,信号质量非常好。 RhinoPiGet4GCSQ: 返回值代表信号格
func RhinoPiGetAPN ¶ added in v0.6.4
* * APN 配置, 参考文档: Quectel_LTE_Standard(A)系列_TCP(IP)_应用指导_V1.4.pdf-2.3.2章节 --
AT+QICSGP=<contextID>[,<context_ type>,<APN>[,<username>,<passwo rd>)[,<authentication>[,<CDMA_pw d>]]]]
AT+QICSGP=1 //查询场景 1 配置。 +QICSGP: 1,"","","",0 OK AT+QICSGP=1,1,"UNINET","","",1 //配置场景 1,APN 配置为"UNINET"(中国联通)。 OK\ERROR
func RhinoPiGetCOPS ¶ added in v0.6.4
* * 获取运营商 +COPS: (2,"CHINA MOBILE","CMCC","46000",7), (1,"CHINA MOBILE","CMCC","46000",0), (3,"CHN-UNICOM","UNICOM","46001",7), (3,"CHN-CT","CT","46011",7), (1,"460 15","460 15","46015",7),,(0-4),(0-2)
func RhinoPiGetICCID ¶ added in v0.6.4
* * 获取ICCID, 用户查询电话卡号 * +QCCID: 89860025128306012474
func RhinoPiRestart4G ¶ added in v0.6.4
Types ¶
This section is empty.