diff --git a/boards/beagley/ai/demos/beagley-ai-using-gpio.rst b/boards/beagley/ai/demos/beagley-ai-using-gpio.rst index a672467d4f07527ce2c220a8ae30c501986185a6..fbc1d870565fc52345d37762b52f1ee9382cd6c9 100644 --- a/boards/beagley/ai/demos/beagley-ai-using-gpio.rst +++ b/boards/beagley/ai/demos/beagley-ai-using-gpio.rst @@ -55,7 +55,7 @@ to simulate a button press. GPIO Write *********** -Before using any pin with HAT pin number we need to configure it using command below, +Before using any pin with HAT Pin number we need to configure it using command below, .. code:: console @@ -63,9 +63,9 @@ Before using any pin with HAT pin number we need to configure it using command b .. figure:: ../images/gpio/led-pin8.* :align: center - :alt: LED connected to HAT pin8 + :alt: LED connected to HAT Pin8 - LED connected to HAT pin8 + LED connected to HAT Pin8 At it's most basic, we can set a GPIO using the **gpioset** command. @@ -132,7 +132,7 @@ Let's create a script called **blinky.sh**, bash blinky.sh -.. image:: ../images/gpio/blinky.gif +.. figure:: ../images/gpio/blinky.gif :align: center :alt: LED blinking @@ -178,9 +178,9 @@ We will connect our Button between HAT Pin 12 (GPIO18) and Ground (GND). .. figure:: ../images/gpio/switch-pin12.* :align: center - :alt: Button connected to HAT pin12 + :alt: Button connected to HAT Pin12 - Button connected to HAT pin12 + Button connected to HAT Pin12 - Configure pin12 as ``gpio`` using command below, @@ -244,9 +244,9 @@ Combining the Two .. figure:: ../images/gpio/switch-pin12-led-pin8.* :align: center - :alt: Button connected to HAT pin12 & LED connected to HAT pin8 + :alt: Button connected to HAT Pin12 & LED connected to HAT Pin8 - Button connected to HAT pin12 & LED connected to HAT pin8 + Button connected to HAT Pin12 & LED connected to HAT Pin8 Now, logically, let's make an LED match the state of the button. @@ -341,15 +341,15 @@ Troubleshooting - **My script won't run!** -Make sure you gave the script execute permissions first and that you're executing it with a **./** before +Make sure you gave the script execute permissions first and that you're executing it with a ``./`` before -To make it executable: +- To make it executable: .. code:: bash chmod +X scriptName.sh -To run it: +- To run it: .. code:: bash diff --git a/boards/beagley/ai/images/gpio/led-pin8.png b/boards/beagley/ai/images/gpio/led-pin8.png index fd4d125ab811cf348d9a2f7eac09d04777c4ee8a..67d6c27be418bc054c1bb2b431092b65b0881d7f 100644 Binary files a/boards/beagley/ai/images/gpio/led-pin8.png and b/boards/beagley/ai/images/gpio/led-pin8.png differ diff --git a/boards/beagley/ai/images/gpio/switch-pin12-led-pin8.png b/boards/beagley/ai/images/gpio/switch-pin12-led-pin8.png index a2565b0f74e7e30b6015ce2f579a8f85cba63fe6..3be257a37a72e21331e55d9462deed5f6b1e5b7b 100644 Binary files a/boards/beagley/ai/images/gpio/switch-pin12-led-pin8.png and b/boards/beagley/ai/images/gpio/switch-pin12-led-pin8.png differ diff --git a/boards/beagley/ai/images/gpio/switch-pin12.png b/boards/beagley/ai/images/gpio/switch-pin12.png index a5e71e2fc4b32213b654aaad462a0185c52c1e31..db3174588bf6e3dbc0e43874aaa9e4b668421d9c 100644 Binary files a/boards/beagley/ai/images/gpio/switch-pin12.png and b/boards/beagley/ai/images/gpio/switch-pin12.png differ