From a63eb37b0f9bfabfed12132a70de56bef622476d Mon Sep 17 00:00:00 2001 From: "Mark A. Yoder" <Mark.A.Yoder@Rose-Hulman.edu> Date: Wed, 14 Jun 2023 15:25:10 -0400 Subject: [PATCH] Switching to gpiod and c examples --- books/beaglebone-cookbook/01basics/basics.rst | 2 +- books/beaglebone-cookbook/03displays/displays.rst | 13 ++++++------- books/beaglebone-cookbook/05tips/tips.rst | 5 ++--- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/books/beaglebone-cookbook/01basics/basics.rst b/books/beaglebone-cookbook/01basics/basics.rst index 02121e0f..f96f0876 100644 --- a/books/beaglebone-cookbook/01basics/basics.rst +++ b/books/beaglebone-cookbook/01basics/basics.rst @@ -131,7 +131,7 @@ following the instructions in :ref:`basics_out_of_the_box` to log into the Bone. .. code-block:: bash - bone$ cat /ID.txt + bone$ cat /etc/dogtag BeagleBoard.org Debian Bullseye IoT Image 2023-06-03 I'm running the 2023-06-03 version. diff --git a/books/beaglebone-cookbook/03displays/displays.rst b/books/beaglebone-cookbook/03displays/displays.rst index b035731c..050947d8 100644 --- a/books/beaglebone-cookbook/03displays/displays.rst +++ b/books/beaglebone-cookbook/03displays/displays.rst @@ -55,7 +55,7 @@ through *USR3*, but we'll refer to them as the *USER* LEDs. The four *USER* LEDs -Place the code shown in :ref:`js_internLED_code` in a file called ``internLED.js``. +Place the code shown in :ref:`py_internLED_code` in a file called ``internLED.py``. You can do this using VSC to edit files (as shown in :ref:`basics_vsc`) or with a more traditional editor (as shown in :ref:`tips_editing_files`). @@ -67,21 +67,20 @@ a more traditional editor (as shown in :ref:`tips_editing_files`). :download:`internLED.py <../code/03displays/internLED.py>` -.. _js_internLED_code: +.. _c_internLED_code: -.. literalinclude:: ../code/03displays/internLED.js - :caption: Using an internal LED (internLED.js) +.. literalinclude:: ../code/03displays/internLED.c + :caption: Using an internal LED (internLED.c) :linenos: -:download:`internLED.js <../code/03displays/internLED.js>` +:download:`internLED.c <../code/03displays/internLED.c>` In the *bash* command window, enter the following commands: .. code-block:: bash bone$ cd ~/beaglebone-cookbook-code/03displays - bone$ ./internLED.js - + bone$ ./internLED.py The *USER0* LED should now be flashing. diff --git a/books/beaglebone-cookbook/05tips/tips.rst b/books/beaglebone-cookbook/05tips/tips.rst index 988e040e..612ea8bd 100644 --- a/books/beaglebone-cookbook/05tips/tips.rst +++ b/books/beaglebone-cookbook/05tips/tips.rst @@ -380,9 +380,8 @@ Log in to your Bone and enter the following command: BeagleBoard.org Debian Bullseye IoT Image 2023-06-03 -:ref:`basics_latest_os` shows how to open the ``ID.txt`` file to see the OS version. -The ``/etc/dogtag`` file has the same contents and is easier to find if you already -have a command prompt. See :ref:`basics_install_os` if you need to update your OS. +:ref:`basics_latest_os` shows how to open the ``/etc/dogtag`` file to see the OS version. +See :ref:`basics_install_os` if you need to update your OS. Controlling the Bone Remotely with a VNC ========================================= -- GitLab