File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ We support Python2, Python3.5 or later.
6767 * [Basic](#basic)
6868 * [get_basic_output](#get_basic_output)
6969 * [set_basic_output](#set_basic_output)
70+ * [Raspberry pi -- GPIO](#raspberry-pi----gpio)
71+ * [gpio_init](#gpio_init)
72+ * [gpio_output](#gpio_output)
7073* [ Angle] ( #angle )
7174* [ Coord] ( #coord )
7275* [ utils (Module)] ( #utils-module )
@@ -654,6 +657,25 @@ from pymycobot import MyCobot
654657 - ` pin_no ` (` int ` ) Pin number.
655658 - ` pin_signal ` (` int ` ): 0 / 1
656659
660+ ## Raspberry pi -- GPIO
661+
662+ ### gpio_init
663+
664+ - ** Prototype** : ` gpio_init() `
665+
666+ - ** Description** : Init GPIO module, and set BCM mode.
667+
668+ ### gpio_output
669+
670+ - ** Prototype** : ` gpio_output(pin, v) `
671+
672+ - ** Description** : Set GPIO port output value.
673+
674+ - ** Parameters**
675+
676+ - ` pin ` (` int ` ) Pin number.
677+ - ` v ` (` int ` ): 0 / 1
678+
657679# Angle
658680
659681``` python
You can’t perform that action at this time.
0 commit comments