Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit a63eb37b authored by Mark Yoder's avatar Mark Yoder Committed by Robert Nelson
Browse files

Switching to gpiod and c examples

parent c788dd71
No related merge requests found
...@@ -131,7 +131,7 @@ following the instructions in :ref:`basics_out_of_the_box` to log into the Bone. ...@@ -131,7 +131,7 @@ following the instructions in :ref:`basics_out_of_the_box` to log into the Bone.
.. code-block:: bash .. code-block:: bash
bone$ cat /ID.txt bone$ cat /etc/dogtag
BeagleBoard.org Debian Bullseye IoT Image 2023-06-03 BeagleBoard.org Debian Bullseye IoT Image 2023-06-03
I'm running the 2023-06-03 version. I'm running the 2023-06-03 version.
......
...@@ -55,7 +55,7 @@ through *USR3*, but we'll refer to them as the *USER* LEDs. ...@@ -55,7 +55,7 @@ through *USR3*, but we'll refer to them as the *USER* LEDs.
The four *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 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`). 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`). ...@@ -67,21 +67,20 @@ a more traditional editor (as shown in :ref:`tips_editing_files`).
:download:`internLED.py <../code/03displays/internLED.py>` :download:`internLED.py <../code/03displays/internLED.py>`
.. _js_internLED_code: .. _c_internLED_code:
.. literalinclude:: ../code/03displays/internLED.js .. literalinclude:: ../code/03displays/internLED.c
:caption: Using an internal LED (internLED.js) :caption: Using an internal LED (internLED.c)
:linenos: :linenos:
:download:`internLED.js <../code/03displays/internLED.js>` :download:`internLED.c <../code/03displays/internLED.c>`
In the *bash* command window, enter the following commands: In the *bash* command window, enter the following commands:
.. code-block:: bash .. code-block:: bash
bone$ cd ~/beaglebone-cookbook-code/03displays bone$ cd ~/beaglebone-cookbook-code/03displays
bone$ ./internLED.js bone$ ./internLED.py
The *USER0* LED should now be flashing. The *USER0* LED should now be flashing.
......
...@@ -380,9 +380,8 @@ Log in to your Bone and enter the following command: ...@@ -380,9 +380,8 @@ Log in to your Bone and enter the following command:
BeagleBoard.org Debian Bullseye IoT Image 2023-06-03 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. :ref:`basics_latest_os` shows how to open the ``/etc/dogtag`` file to see the OS version.
The ``/etc/dogtag`` file has the same contents and is easier to find if you already See :ref:`basics_install_os` if you need to update your OS.
have a command prompt. See :ref:`basics_install_os` if you need to update your OS.
Controlling the Bone Remotely with a VNC Controlling the Bone Remotely with a VNC
========================================= =========================================
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment