diff --git a/boards/beagleconnect/freedom/demos-and-tutorials/using-arduino-zephyr-template.rst b/boards/beagleconnect/freedom/demos-and-tutorials/using-arduino-zephyr-template.rst index ada1f7207b83c452ff6fb1dd8a49dee165d1e098..b709dbb296a00fd09d63f22500fda6436bd909eb 100644 --- a/boards/beagleconnect/freedom/demos-and-tutorials/using-arduino-zephyr-template.rst +++ b/boards/beagleconnect/freedom/demos-and-tutorials/using-arduino-zephyr-template.rst @@ -42,7 +42,7 @@ Setup Arduino workspace *********************** If this is your first time using zephyr, `Install Zephyr SDK <https://docs.zephyrproject.org/latest/develop/getting_started/index.html#install-the-zephyr-sdk>`_ and install ``cc1352-flasher`` -using command ``pip install cc1352-flasher`` before following the steps below. +using command ``pip install cc1352-flasher`` then reboot your system before following the steps below. 1. Create a workspace folder: @@ -82,11 +82,12 @@ Arduino Code ============ You can find ``main.cpp`` file in the directory ``arduino-workspace/arduino-zephyr-template/src/`` -which contains your arduino code. The default code prints ``Hello World`` on the serial monitor. +which contains your arduino code. The default code prints ``Hello World`` on the serial monitor. +Since you are already in the ``arduino-workspace`` directory, then proceed with writing the following code. .. code:: shell-session - nano arduino-workspace/arduino-zephyr-template/src/main.cpp + nano arduino-zephyr-template/src/main.cpp .. code-block:: shell-session :caption: main.cpp @@ -169,6 +170,10 @@ created at the time of setup. delay(1000); // wait for a second } +.. note:: + + For specifying high and low output states, use ``HIGH`` and ``LOW``. Avoid using boolean ``1`` and ``0`` as they may not be compatible. + Before doing ``Build`` and ``Flash``, you must activate the virtual environment in the ``arduino-workspace`` directory which has been created earlier. .. code:: shell-session