Skip to content

Commit 824fc2d

Browse files
committed
Merge branch 'main' of github.com:RaspberryPiFoundation/build-hat
2 parents 422892c + df2e4a2 commit 824fc2d

File tree

5 files changed

+6
-230
lines changed

5 files changed

+6
-230
lines changed

README.md

+2-33
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,11 @@ Then:
2020
pip3 install . --user
2121
```
2222

23-
Build
24-
-----
25-
26-
```
27-
./build.sh
28-
```
29-
3023
Documentation
3124
-------------
3225

26+
Documentation can be viewed at: https://buildhat.readthedocs.io
27+
3328
Instructions for regenerating the documentation can be found in
3429
`docs/README.md`. Briefly, assuming you have the appropriate python
3530
modules installed:
@@ -78,29 +73,3 @@ motor.stop()
7873

7974
pause()
8075
```
81-
82-
Programming Bootloader
83-
----------------------
84-
85-
```
86-
sudo apt install automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev
87-
git clone https://github.com/raspberrypi/openocd.git --recursive --branch rp2040 --depth=1
88-
cd openocd
89-
./bootstrap
90-
./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio
91-
make -j4
92-
sudo make install
93-
```
94-
95-
* Use the following command to program the bootloader:
96-
97-
```
98-
openocd -s /usr/local/share/openocd/scripts -f interface/raspberrypi-swd.cfg -f target/rp2040.cfg -c "program bootloader.elf verify reset exit"
99-
```
100-
101-
Install
102-
-------
103-
104-
```
105-
pip3 install buildhat-*.whl
106-
```

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
python3 -m venv hat_env
44
source hat_env/bin/activate
5-
USE_DUMMY_I2C=1 ./setup.py build
6-
USE_DUMMY_I2C=1 ./setup.py install
5+
./setup.py build
6+
./setup.py install

pico_setup.sh

-186
This file was deleted.

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
long_description_content_type="text/markdown",
2121
author='Raspberry Pi Foundation',
2222
author_email = '[email protected]',
23-
url = 'https://github.com/RaspberryPiFoundation/buildhat',
23+
url = 'https://github.com/RaspberryPiFoundation/python-build-hat',
2424
project_urls = {
25-
'Bug Tracker': "https://github.com/RaspberryPiFoundation/buildhat/issues",
25+
'Bug Tracker': "https://github.com/RaspberryPiFoundation/python-build-hat/issues",
2626
},
2727
packages=['buildhat'],
2828
package_data={

test.sh

-7
This file was deleted.

0 commit comments

Comments
 (0)