Skip to content

Commit 8451de5

Browse files
Updated README
1 parent ee94f0d commit 8451de5

1 file changed

Lines changed: 18 additions & 49 deletions

File tree

README.md

Lines changed: 18 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ cd BalancingRobotZ
2929
west update
3030
```
3131

32-
Command to build the Zephyr application (in BalancingRobotZ directory):
32+
Command to build the Zephyr application (in br_app directory):
3333
```
34+
source zephyr/zephyr-env.sh
35+
nrfutil toolchain-manager launch --ncs-version v3.0.2 --shell
36+
cd BalancingRobotZ
3437
./build.sh
3538
```
3639

@@ -58,68 +61,34 @@ I used this 5V miniboost board to power the 6V motors from a 3.7V LiPo battery.
5861

5962
### Software Installation for Python Control Program on Raspberry Pi5 (Bullseye)
6063

61-
Update OS
6264
```
65+
# Update OS
6366
sudo apt update
6467
sudo apt upgrade
65-
```
66-
67-
Install bluez
68-
```
68+
# Install bluez
6969
sudo apt-get install bluez
70-
```
71-
72-
Install pip for python3.10
73-
```
70+
# Install pip for python3.10
7471
sudo apt-get install python3-pip
75-
```
76-
77-
Install glib
78-
```
72+
# Install glib
7973
sudo apt-get install libglib2.0-dev
80-
```
81-
82-
Install bluepy
83-
```
74+
# Install bluepy
8475
pip install bluepy
85-
```
86-
87-
Install tkinter
88-
```
76+
# Install tkinter
8977
sudo apt-get install python3-tk
90-
```
91-
92-
Install matplotlib
93-
```
78+
# Install matplotlib
9479
pip install matplotlib
95-
```
96-
97-
Install PyOpenGL
98-
```
80+
# Install PyOpenGL
9981
sudo apt install python3-opengl
10082
pip3 install PyOpenGL
101-
```
102-
103-
Install pyopengltk
104-
```
83+
# Install pyopengltk
10584
pip install pyopengltk
106-
```
107-
108-
Workaround for PyOpenGL error:
109-
110-
```
111-
AttributeError: 'EGLPlatform' object has no attribute 'GLX'. Did you mean: 'GL'?\
112-
85+
# Workaround for PyOpenGL error:
86+
# AttributeError: 'EGLPlatform' object has no attribute 'GLX'. Did you mean: 'GL'?
11387
unset WAYLAND_DISPLAY
114-
115-
or
116-
88+
# or
11789
pip3 install --force-reinstall "PyOpenGL==3.1.5"
118-
```
119-
120-
To get around problem:
121-
```
122-
https://github.com/IanHarvey/bluepy/issues/218
90+
# To get around problem:
91+
# https://github.com/IanHarvey/bluepy/issues/218
12392
sudo setcap 'cap_net_raw,cap_net_admin+eip' bluepy-helper
12493
```
12594

0 commit comments

Comments
 (0)