Skip to content

Commit 67773cb

Browse files
Adding RPi Bookworm note
1 parent d894333 commit 67773cb

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docs/examples-Python.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ icon: simple/python
1515
This first example just does some basic measurements to make sure everything is hooked up correctly.
1616

1717

18+
Navigate to the qwiic_otos\examples directory in your Python installation (ex: mine is at c:\Python\Lib\site-packages\qwiic\drivers\)
19+
20+
21+
1822
<figure markdown>
1923
[![Optical Tracking Odometry Sensor Python Example 1](assets/img/){ width="600" }](assets/img/ "Click to enlarge")
2024
<figcaption markdown>Finding Example 1</figcaption>
@@ -151,7 +155,7 @@ Alternatively, you can expand the link below and copy and paste the code into a
151155

152156
??? "Example 4 Arduino Code"
153157
```
154-
--8<-- "https://raw.githubusercontent.com/sparkfun/SparkFun_Qwiic_OTOS_Arduino_Library/main/examples/Example4_SetOffsetAndPosition/Example4_SetOffsetAndPosition.ino"
158+
--8<-- "https://raw.githubusercontent.com/sparkfun/Qwiic_OTOS_Py/master/examples/qwiic_otos_ex4_set_offsets_and_position.py"
155159
```
156160

157161

docs/software_setup-Python.md

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ icon: simple/python
55
!!! attention
66
If this is your first time working with Python, there are quite a few useful tutorials on getting started. The [Python Programming Section](https://learn.sparkfun.com/tutorials/python-programming-tutorial-getting-started-with-the-raspberry-pi/programming-in-python) of our Getting Started with the Raspberry Pi Tutorial has some good basic information and resources for getting started with Python.
77

8+
9+
10+
811
We've written a python package to get you started with the SparkFun Optical Tracking Odometry Sensor. It's been included in the SparkFun Qwiic Python package, which aggregates all Python Qwiic drivers/modules to provide a single entity for Qwiic within a Python environment. The [Qwiic_Py GitHub Library ReadMe](https://github.com/sparkfun/Qwiic_Py) has more information on the Qwiic Python package.
912

1013
If you already have your Qwiic Python package installed, you can update it with the following command:
@@ -43,6 +46,13 @@ If you prefer downloading the code to build and install the package manually, yo
4346

4447

4548

49+
!!! attention
50+
If you are working with a Raspberry Pi and are using the new Bookworm distribution of the Raspberry Pi OS, refer to [these instructions](https://www.raspberrypi.com/documentation/computers/os.html#python-on-raspberry-pi) to setup a virtual environment.
51+
52+
Make sure to include the --system-site-packages flag:python3 -m venv <name of virtual environment> --system-site-packages
53+
54+
Then it is possible to install the packages using pip.
55+
4656

4757

4858
In addition to the package provided here, we have written a Python script that allows you to visualize the XRP in real time. Download via the button below.
@@ -57,3 +67,5 @@ In addition to the package provided here, we have written a Python script that a
5767
[![Visualization Script in Action](assets/img/SEN-24904-Action-GIF-1.gif){ width="600" }](assets/img/SEN-24904-Action-GIF-1.gif "Click to enlarge")
5868
<figcaption markdown>Visualization Script in Action</figcaption>
5969
</figure>
70+
71+

0 commit comments

Comments
 (0)